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 9 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 <firstname.lastname@example.org>
date: Mon May 02 11:46:10 2011 -0700
643 date -R support would be helpful
Reviewed by: Jason King <email@example.com>
Reviewed by: Yuri Pankov <firstname.lastname@example.org>
Reviewed by: Dan McDonald <email@example.com>
Reviewed by: Kartik Mistry <firstname.lastname@example.org>
Reviewed by: Rich Lowe <email@example.com>
Approved by: Gordon Ross <firstname.lastname@example.org>