タイムスタンプを RFC 1123 形式の文字列に変換 (utils.date_to_rfc1123)
宣言
rfc1123 = utils.date_to_rfc1123(timestamp)
パラメータ
- timestamp
数値型。タイムスタンプ
戻り値
- rfc1123
文字列型。RFC 1123 形式の日時文字列
説明
この関数は 20250220 以降のバージョンで使用できます
使用例
nLog(utils.date_to_rfc1123(1749490800)) -- 出力:Mon, 09 Jun 2025 17:40:00 GMT
nLog(utils.date_to_rfc1123(os.time())) -- 出力例:Mon, 09 Jun 2025 17:40:00 GMT