Module
Data.SimpleDateTime
- Package
- purescript-simple-datetime
- Repository
- felixmulder/purescript-simple-datetime
#DateFormat Source
newtype DateFormat
A newtype wrapper for a format that should be used to parse a SimpleDateTime
An example format is the isoUtc
format defined as defined below
Constructors
#parse Source
parse :: String -> Either Error SimpleDateTime
Parses an ISO 8601 UTC date on the format YYYY-MM-DDTHH:mm:ss.SSSZ
to a
SimpleDateTime
#parseFormat Source
parseFormat :: DateFormat -> String -> Either Error SimpleDateTime
Parses a string using a specific DateFormat
#getHours Source
getHours :: SimpleDateTime -> Int
Get the hours from a SimpleDateTime
#getMinutes Source
getMinutes :: SimpleDateTime -> Int
Get the minutes from a SimpleDateTime
#getSeconds Source
getSeconds :: SimpleDateTime -> Int
Get the seconds from a SimpleDateTime
- Modules
- Data.
SimpleDateTime