Non FFI version of purescript-datetime
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 24/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- backend
调研方向
The issue proposes replacing JavaScript FFI date handling with a fully pure PureScript implementation and points to the existing createDate snippet, the ECMAScript Date specification, and Haskell's Data.Time as references. Start by reading the current date implementation and the linked specification to determine the scope and behavior to reproduce. Done would mean agreeing on and implementing a complete pure replacement; the issue does not identify tests or a narrower target.
由索引模型根据 Issue 内容生成。
描述
After a brief chat with @garyb here, it was mentioned that ideally purescript-datetime could actually be 100% pure Purescript.
Would the idea be to reproduce these specs here?
As a starting point I assume I'd need to replace:
var createDate = function (y, m, d) {
var date = new Date(Date.UTC(y, m, d));
if (y >= 0 && y < 100) {
date.setUTCFullYear(y);
}
return date;
};
So there would be no leaning on the use of JS's implementation?
This is assuming I'm not barking up the wrong tree, if that is the case what might one need to look at?
edit: I'm also looking at Haskell's Date.Time for guidance.
- 主要语言
- PureScript
- 星标
- 51
- 派生
- 48
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
purescript/purescript-datetime 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
purescript/purescript-datetime#102 · 5 条评论 ·
-
Add constructors for Date / Time components using type-level integers可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 5/5 一周以上 新手友好度 15/100
purescript/purescript-datetime#96 · 1 条评论 ·
-
type: documentation
难度 2/5 1-3 小时 新手友好度 35/100
purescript/purescript-datetime#92 · 1 条评论 ·
-
status: needs more info
难度 5/5 一周以上 新手友好度 25/100
purescript/purescript-datetime#90 · 3 个 reaction ·
-
status: needs more info
难度 5/5 一周以上 新手友好度 20/100
查看 purescript/purescript-datetime 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
milind-soni/OpenMausBot#5829 ·
维护者通常 1 天内回复