Non FFI version of purescript-datetime
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 24/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- backend
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PureScript
- Stars
- 51
- Forks
- 48
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from purescript/purescript-datetime
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
purescript/purescript-datetime#102 · 5 comments ·
-
Add constructors for Date / Time components using type-level integersMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
purescript/purescript-datetime#96 · 1 comment ·
-
type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
purescript/purescript-datetime#92 · 1 comment ·
-
status: needs more info
Difficulty 5/5 Over a week Newbie friendliness 25/100
purescript/purescript-datetime#90 · 3 reactions ·
-
status: needs more info
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in purescript/purescript-datetime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
milind-soni/OpenMausBot#5829 ·
Maintainers usually reply within 1 day