跳至主要內容

RFC 3339 格式的時間文字轉換為時間戳 (utils.date_from_rfc3339)

聲明

timestamp = utils.date_from_rfc3339(rfc3339)

參數

  • rfc3339
    文字型,RFC 3339 格式的時間文字

回傳值

  • timestamp
    數值型,時間戳

說明

該函式在 20250220 以後版本方可使用

範例

nLog(utils.date_from_rfc3339("2025-06-09T17:40:00.000Z")) -- 輸出:1749490800.0