Module
Data.RFC3339String
- Package
- purescript-precise-datetime
- Repository
- awakesecurity/purescript-precise-datetime
#RFC3339String Source
#trim Source
trim :: RFC3339String -> RFC3339String
Remove trailing zeros from the subsecond component.
#fromDateTime Source
fromDateTime :: DateTime -> RFC3339String
Use our own formatter since we'd otherwise need to convert from DateTime
to JSDate
first, and Data.JSDate.toISOString
can throw exceptions.
#toLocale Source
toLocale :: RFC3339String -> Locale
Reads the locale, returning GMT (+0000) if not present.
#toDateTime Source
toDateTime :: RFC3339String -> Maybe DateTime