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.

#toLocale Source

toLocale :: RFC3339String -> Locale

Reads the locale, returning GMT (+0000) if not present.

#dropWhileEnd Source

dropWhileEnd :: (Char -> Boolean) -> String -> String

Returns the prefix remaining after dropping characters that satisfy the predicate from the end of the string.