Files
kumomta/docs/reference/kumo.time/parse_rfc2822.md
T
Wez Furlong 6f31d5514c new Time and TimeDelta objects for lua
Motivated by https://github.com/KumoCorp/kumomta/pull/403,
this commit introduces reasonably full featured Time and TimeDelta
types built atop the chrono crate.

closes: https://github.com/KumoCorp/kumomta/pull/403
2025-10-22 17:26:35 +01:00

323 B

kumo.time.parse_rfc2822

{{since('dev')}}

local time = kumo.time.parse_rfc2822(TIMESTAMP)

Parses a timestamp in RFC 2822 format, and returns a Time object.

Example

local t = kumo.time.parse_rfc2822 'Sun, 2 Jan 2000 03:04:05 +0000'