What does Linux date -R or –rfc-email or –rfc-822 or –rfc-2822 or –rfc-3339 option do?

You can use date -R or –rfc-email option to output date and time in RFC 5322 format. Example: Mon, 14 Aug 2006 02:34:56 -0600

You can use date –rfc-3339=FMT option to output date/time in RFC 3339 format.  FMT=’date’, ‘seconds’, or ‘ns’ for date and time to the indicated precision. Example: 2006-08-14 02:34:56-06:00

date -R or –rfc-email or –rfc-822 or –rfc-2822 or –rfc-3339 option example:

Leave a Reply