跳到主要内容

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