xsd-0.3.1: XML Schema data structures

Text.XML.XSD.DateTime

Description

XSD dateTime data structure http://www.w3.org/TR/xmlschema-2/#dateTime

Synopsis

Documentation

dateTime' :: String -> Either ParseError DateTimeSource

Parses the string into a dateTime or may fail with a parse error.

dateTime :: String -> Maybe DateTimeSource

Parses the string into a dateTime or may fail.

toZonedTime :: DateTime -> ZonedTimeSource

Converts a dateTime to a zoned time.

fromZonedTime :: ZonedTime -> DateTimeSource

Converts a zoned time to a dateTime.

zonedTime' :: String -> Either ParseError ZonedTimeSource

Parses the string in a dateTime then converts to a zoned time and may fail with a parse error.

zonedTime :: String -> Maybe ZonedTimeSource

Parses the string in a dateTime then converts to a zoned time and may fail.

toUTCTime :: DateTime -> UTCTimeSource

Converts a dateTime to a UTC time.

fromUTCTime :: UTCTime -> DateTimeSource

Converts a UTC time to a dateTime.

utcTime' :: String -> Either ParseError UTCTimeSource

Parses the string in a dateTime then converts to a UTC time and may fail with a parse error.

utcTime :: String -> Maybe UTCTimeSource

Parses the string in a dateTime then converts to a UTC time and may fail.