Module

Data.RFC3339String

#trim

trim :: RFC3339String -> RFC3339String

Remove trailing zeros from the subsecond component.

#fromDateTime

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.

Modules