Safe Haskell | None |
---|---|
Language | Haskell2010 |
- epoch :: PosixTime
- epochDay :: Day
- dayLength :: Nanoseconds
- add :: Nanoseconds -> PosixTime -> PosixTime
- diff :: PosixTime -> PosixTime -> Nanoseconds
- now :: IO PosixTime
- toUtc :: PosixTime -> UtcTime
- fromUtc :: UtcTime -> PosixTime
- toDatetime :: PosixTime -> Datetime
- toOffsetDatetime :: Offset -> PosixTime -> OffsetDatetime
- fromDatetime :: Datetime -> PosixTime
- fromOffsetDatetime :: OffsetDatetime -> PosixTime
- truncateToDay :: PosixTime -> Day
Documentation
add :: Nanoseconds -> PosixTime -> PosixTime Source
diff :: PosixTime -> PosixTime -> Nanoseconds Source
This probably needs to be wrapped in a bunch of CPP like
the one in time
is.
toUtc :: PosixTime -> UtcTime Source
This may be wrong for dates before what we count as the first modified julian day.
toDatetime :: PosixTime -> Datetime Source
toOffsetDatetime :: Offset -> PosixTime -> OffsetDatetime Source
fromDatetime :: Datetime -> PosixTime Source
truncateToDay :: PosixTime -> Day Source