David W. Hodgins wrote:
> Bill Marcum wrote:
>> On 05/29/2013 05:24 AM, Janis Papanagnou wrote:
>>> GNU date seems to support that:
>>> $ date -Ins
>>> 2013-05-29T11:13:13,718170300+0200
>>
>> That's interesting. The man page, info and 'date --help' don't show a
>> -Ins option, but it is accepted. (coreutils 8.13, Ubuntu 12.04).
>> '+%N' is documented to show time in nanoseconds.
>
> I didn't see it at first glance either, but it's there ...
> -I[TIMESPEC], --iso-8601[=TIMESPEC]
> output date/time in ISO 8601 format. TIMESPEC=`date'
> for date only (the
> default), `hours', `minutes', `seconds', or `ns' for date
> and time to the indicated precision.
In the GNU coreutils 8.12.197-032bb man page for date(1) 8.13 (September
2011), there is
| --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
and there is no mention of the “-I” option there or in the TeXinfo pages,
although the date(1) from the same Debian GNU/Linux package also supports
“-Ins” as described.
--
PointedEars