UnixTimeToIso8601UnixTimeToIso8601 — converts from Unix time to ISO 8601.
UnixTimeToIso8601 (unixtime)
unixtimeA floating point number as a UTC UNIX timestamp.
An ISO 8601 formatted date string.
This function takes a floating point UNIX time and returns an ISO 8601
formatted date string. This string will be in the form
YYYY-MM-DDTHH:mm:ss.fffZ
where:
is the 4-digit
year. |
is the 2-digit
month, from 1 to 12. |
is the 2-digit day
within the month, from 1 to 31. |
T is the literal letter T. |
is the 2-digit hour
within the day, from 0 to 23. |
is the 2-digit
minute within the hour, from 0 to 59. |
is the 2-digit
second within the minute, from 0 to 59. |
is the 3-digit
millisecond within the second, from 0 to 999. |
is the literal
letter Z, indicating UTC time. |
This function will always produce a UTC string. The input
unixtime must be in UTC.
—> UnixTimeToIso8601(1590237923.6919999123);
"2020-05-23T12:45:23.692Z"