Timestamp to RFC 3339 String (utils.date_to_rfc3339)
Declaration
rfc3339 = utils.date_to_rfc3339(timestamp)
Parameters
- timestamp
Number. Unix timestamp.
Returns
- rfc3339
String. RFC 3339 formatted time string.
Notes
Available after 2025-02-20.
Examples
nLog(utils.date_to_rfc3339(1749490800)) -- 2025-06-09T17:40:00.000Z
nLog(utils.date_to_rfc3339(os.time()))