Format a posix time to a ISO8601 String.
None of the generated Strings include timezone postfix.
Format a date ("YYYY-MM-DD")
Format a time ("hh:mm:ss")
Format a time including millis ("hh:mm:ss.sss")
Format a date time ("YYYY-MM-DDThh:mm:ss")
Format a time including millis ("YYYY-MM-DDThh:mm:ss.sss")
Format a date ("YYYY-MM-DD")
Format a time ("hh:mm:ss")
Format a time including millis ("hh:mm:ss.sss")
Format a date time ("YYYY-MM-DDThh:mm:ss")
Format a time including millis ("YYYY-MM-DDThh:mm:ss.sss")
The precission of the resulting String can be defined by the Mode parameter
The resulting string will have the following format
Get a tuple containg strings for all date string parts
This can be used to quickly imlement your own format:
timeToString time =
let
( ( year, month, day ), ( hour, minute, second ), ms ) =
toTuple time
in
year ++ "/" ++ month ++ "/" ++ day ++ " " ++ hour ++ "_" ++ minute ++ "!"
Format a String without timezone offset