跳到主要内容

RFC 1123 格式的时间文本转换为时间戳 (utils.date_from_rfc1123)

声明​

timestamp = utils.date_from_rfc1123(rfc1123)

参数​

  • rfc1123 文本型,RFC 1123 格式的时间文本

返回值​

  • timestamp 数值型,时间戳

说明​

这个函数在 20250220 以后版本方可使用

示例​

nLog(utils.date_from_rfc1123("Mon, 09 Jun 2025 17:40:00 GMT")) -- 输出:1749490800.0