Skip to main content

Timestamp to RFC 1123 String (utils.date_to_rfc1123)

Declaration

rfc1123 = utils.date_to_rfc1123(timestamp)

Parameters

  • timestamp
    Number. Unix timestamp.

Returns

  • rfc1123
    String. RFC 1123 formatted time string.

Notes

Available after 2025-02-20.

Examples

nLog(utils.date_to_rfc1123(1749490800)) -- Mon, 09 Jun 2025 17:40:00 GMT
nLog(utils.date_to_rfc1123(os.time()))