Module

Data.DateTime.Parsing

Package
purescript-datetime-parsing
Repository
flounders/purescript-datetime-parsing

#Direction Source

data Direction

Constructors

Instances

#parseFullDateTime Source

parseFullDateTime :: forall m. Monad m => ParserT String m FullDateTime

parseFullDateTime will parse RFC3339 compliant datetimes. It will not handle leap seconds until they are supported in DateTime.

#fromString Source

fromString :: String -> Either ParseError FullDateTime

This is a convenience function for the simple use case of String to a DateTime or a ParseError.

#toUTC Source

toUTC :: FullDateTime -> Maybe DateTime

toUTC is a convenience function that will take a FullDateTime and use it's offset to adjust it to a UTC DateTime.