purescript-datetime icon indicating copy to clipboard operation
purescript-datetime copied to clipboard

Date and time library for PureScript.

Results 12 purescript-datetime issues
Sort by recently updated
recently updated
newest added

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...

status: needs more info

How does one represent datetimes with leap seconds such as 60 and 61?

type: breaking change
status: needs more info

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...

status: needs more info

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...

type: documentation

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...

type: enhancement

`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...

status: needs more info

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...

status: needs more info