What is the mail date string format (rfc2822)

Date - Mail / Internet - Date format (rfc822, 850, 2822)

About

A date can be represented as a string with the date format defined in a email (ie rfc2822 format).

This format is the second most popular format below ISO 8601 format and is well spread.

For instance, this format is recognized by google (Ref) but they prefers the ISO 8601 format.

Example

Thu, 21 Dec 2000 16:01:07 +0200

Syntax

Space are recommended but not mandatory.

(* Day name *)
[[  "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun" ] ","]
(* Day digit *)
'day (2 digit)'
(* Month Short Name *)
( "Jan" | "Feb" | "Mar" | "Apr" | "May" | "Jun" | "Jul" | "Aug" |  "Sep" | "Oct" | "Nov" | "Dec" )
(* Year *)
'year (4 digits)'
(* Time *)
'hour (2 digits)' ":" 'minute (2 digits)' [ ":" 'second (2 digit)' ]
(* Zone *)
( "+" | "-" ) 'zone (4 digit)'

Library

gmdate('r', $timestamp)

Documentation / Reference





Discover More
Date Format
Instant - (Time|Date) String Format

A date can be represented as a string. The most known format are by order of importance: (ie 2004-02-12T15:19:21+00:00) Email (Internet Message Format) (ie Sat, 12 Aug 1995 13:30:00 GMT) The...
Web Page Metadata - Date Property

Google estimates a page date based on features of the page such as dates in the title and URL. (Ref (Recommended)...
What contains the HTTP Last-Modified header

The Last-Modified header is part of a conditional get request in order to get a resource if and only it has changed since the last fetch
What's the Date HTTP Header ?

The date header is the wall_clock of the response message just before it was send.



Share this page:
Follow us:
Task Runner