メインコンテンツまでスキップ

タイムスタンプを RFC 3339 形式の文字列に変換 (utils.date_to_rfc3339)

宣言

rfc3339 = utils.date_to_rfc3339(timestamp)

パラメータ

  • timestamp
    数値型。タイムスタンプ

戻り値

  • rfc3339
    文字列型。RFC 3339 形式の日時文字列

説明

この関数は 20250220 以降のバージョンで使用できます

使用例

nLog(utils.date_to_rfc3339(1749490800)) -- 出力:2025-06-09T17:40:00.000Z  
nLog(utils.date_to_rfc3339(os.time())) -- 出力例:2025-06-09T17:40:00.000Z