Skip to content

kumo.time.parse_rfc2822

Since: Version 2025.12.02-67ee9e96

The functionality described in this section requires version 2025.12.02-67ee9e96 of KumoMTA, or a more recent version.

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'