date -R support would be helpful
This is a request for a GNUism. It is used by certain debian scripts like dch:
-R, --rfc-2822 output date and time in RFC 2822 format.
Example: Mon, 07 Aug 2006 12:34:56 -0600
--rfc-3339=TIMESPEC output date and time in RFC 3339 format.
TIMESPEC=`date', `seconds', or `ns' for
date and time to the indicated precision.
Date and time components are separated by
a single space: 2006-08-07 12:34:56-06:00
I'd be happy with just -R, although I can see that the other option may be quite useful as well.
Also, I notice that GNU date has %N, which is a time in nanoseconds. Perhaps this would be useful to obtain high resolution times?
Updated by Garrett D'Amore over 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Difficulty changed from Medium to Bite-size
user: Garrett D'Amore <email@example.com>
date: Mon May 02 11:46:10 2011 -0700
643 date -R support would be helpful
Reviewed by: Jason King <firstname.lastname@example.org>
Reviewed by: Yuri Pankov <email@example.com>
Reviewed by: Dan McDonald <firstname.lastname@example.org>
Reviewed by: Kartik Mistry <email@example.com>
Reviewed by: Rich Lowe <firstname.lastname@example.org>
Approved by: Gordon Ross <email@example.com>