Module

Data.RFC3339String

Package
purescript-precise-datetime
Repository
awakesecurity/purescript-precise-datetime

#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.