purescript-datetime
purescript-datetime copied to clipboard
Date and time library for PureScript.
Hi, thank you for such a great lib. I'm trying to figure out a way to get the week of the year. Is there a way to accomplish this with...
**Description of the change** Fixes #96. I did not implement an `exactDate'` (see `canonicalDate'` for comparison). Since we don't currently have a `Prim.Int (class Mod)`, we can't define a type-level...
With the advent of `0.15.0` and type-level integers, we can now define `Date` and `Time` components without using `unsafePartial`: ```purs hour :: forall i . Reflectable i Int => PI.Compare...
Currently a `Semiring Milliseconds` instance exists. However, durations are not a semiring: the closure property of the multiplication operation is not honoured because multiplying two durations gives not a duration...
How does one represent datetimes with leap seconds such as 60 and 61?
1. There is `Data.Time.Duration` and also `Data.Interval.Duration` and I wonder what the difference is. `Data.Time.Duration` is used for functions like `adjust` and `diff`, while `Data.Interval.Duration` seems to be mostly about...
Even a single example of how to construct the main data type in a module would be really helpful. For example in `Data.Time`, you need a lot of understanding and...
After a brief chat with @garyb [here](https://github.com/purescript-contrib/purescript-now/pull/13#issuecomment-696630657), it was mentioned that ideally `purescript-datetime` could actually be 100% pure Purescript. Would the idea be to reproduce these specs [here](https://tc39.es/ecma262/#sec-date-objects)? As a...
`adjust` now can modify a date by the number of Days, adjusting by Months and Years is not actually the same as adding some easily calculable number of days. Should...
While writing an app with lots of `DateTime` manipulations, I noticed that `adjust` is very annoying to use, because of the `Maybe` return type. I don't think this is a...