Aller au contenu principal

Convertir un texte au format RFC 1123 en horodatage (utils.date_from_rfc1123)

Déclaration

timestamp = utils.date_from_rfc1123(rfc1123)

Paramètres

  • rfc1123
    Type texte, texte temporel au format RFC 1123

Valeur de retour

  • timestamp
    Type numérique, horodatage

Description

Disponible dans les versions postérieures à 20250220.

Exemple

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