After a brief chat with @garybhere, 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:
varcreateDate=function(y,m,d){vardate=newDate(Date.UTC(y,m,d));if(y>=0&&y<100){date.setUTCFullYear(y);}returndate;};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.
After a brief chat with @garybhere, it was mentioned that ideally
purescript-datetimecould 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:
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.