Convertir un horodatage en texte au format RFC 1123 (utils.date_to_rfc1123)
Déclaration
rfc1123 = utils.date_to_rfc1123(timestamp)
Paramètres
- timestamp
Type numérique, horodatage
Valeur de retour
- rfc1123
Type texte, texte temporel au format RFC 1123
Description
Disponible dans les versions postérieures à 20250220.
Exemple
nLog(utils.date_to_rfc1123(1749490800)) -- Sortie : Mon, 09 Jun 2025 17:40:00 GMT
nLog(utils.date_to_rfc1123(os.time())) -- Sortie similaire : Mon, 09 Jun 2025 17:40:00 GMT