Module
Data.Moment.Simple
- Package
- purescript-simple-moment
- Repository
- passy/purescript-simple-moment
A simple PureScript wrapper around moment.js
#fromEpoch Source
fromEpoch :: Milliseconds -> Maybe Moment
Construct a Moment object from the milliseconds since 1970-01-01 00:00:00.000. If the timestamp is invalid, Nothing is returned.
#formatISO8601 Source
formatISO8601 :: Moment -> Effect String
Format according to ISO-8601, respecting the user's locale.
#formatUTCISO8601 Source
formatUTCISO8601 :: Moment -> String
Format according to ISO-8601, ignoring the locale timezone.