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.
#toDateTime Source
toDateTime :: RFC3339String -> Maybe DateTime