Zeitstempel in RFC-3339-Text umwandeln (utils.date_to_rfc3339)
Deklaration
rfc3339 = utils.date_to_rfc3339(timestamp)
Parameter
- timestamp
Numerischer Wert, Zeitstempel
Rückgabewert
- rfc3339
Text, Zeittext im RFC-3339-Format
Hinweise
Diese Funktion ist erst in Versionen nach 20250220 verfügbar.
Beispiel
nLog(utils.date_to_rfc3339(1749490800)) -- Ausgabe: 2025-06-09T17:40:00.000Z
nLog(utils.date_to_rfc3339(os.time())) -- Ungefähr folgende Ausgabe: 2025-06-09T17:40:00.000Z