time
time copied to clipboard
A time library
There is now https://hackage.haskell.org/package/time-1.14/docs/Data-Time-Calendar-Quarter.html (yay!) but I don't see a way to do this: ``` > formatTime defaultTimeLocale "%Y-Q%Quarter" (fromGregorian 2024-04-30) 2024-Q2 ```
(Re-submitting a patched #237, inlining the description for convenience) The conversion of picoseconds to and from `DiffTime` doesn't keep the unit explicit. Which can be confusing and is not homogeneous...
Merge in functionality from these packages: * [timezone-series](/ygale/timezone-series) * [timezone-olson](/ygale/timezone-olson) * [leapseconds](/AshleyYakeley/leapseconds) * [timezone-unix](/AshleyYakeley/timezone-unix)
Packs more predictably. * `Day` contains `Integer` * `Int32` days is ± 5.8 million years * probably want `Int64` * `DiffTime` and `NominalDiffTime` contain `Pico` (`Fixed`) which contains `Integer` *...
Currently https://hackage.haskell.org/package/time-1.8.0.1/docs/Data-Time-Calendar.html#t:Day is represented in memory as an `Integer`, and many similar functions like `fromGregorian` which interface with `Integer`s. While this is admirably future-proof (we can deal with years larger...
We have `addUTCTime` for applying `NominalDiffTime` to `UTCTime`, and `addLocalTime` for applying them to `LocalTime`. It'd be nice to have equivalent functions for `CalendarDiffTime`.
Currently the iso8601 parser fails when trying to parse a ZonedTime from a non-offset time stamp. I was wondering why it doesn’t succeed and just “assumes” utc. thanks in advance!
I get `ReferenceError: h$get_current_timezone_seconds is not defined`, presumably due to the following code: ``` {-# CFILES cbits/HsTime.c #-} foreign import ccall unsafe "HsTime.h get_current_timezone_seconds" get_current_timezone_seconds :: CTime -> Ptr CInt...