Module
Data.DateTime.Instant
- Package
- purescript-datetime
- Repository
- purescript/purescript-datetime
#instant Source
instant :: Milliseconds -> Maybe InstantAttempts to create an Instant from a Milliseconds duration. The
minimum acceptable value equates to the bottom DateTime and the maximum
acceptable value equates to the top DateTime.
#unInstant Source
unInstant :: Instant -> MillisecondsLowers an Instant to a Milliseconds duration.
#fromDateTime Source
fromDateTime :: DateTime -> InstantCreates an Instant from a DateTime value.
#toDateTime Source
toDateTime :: Instant -> DateTimeCreates a DateTime value from an Instant.