[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Re: date not parsing full iso-8601
From: |
Paul Eggert |
Subject: |
[bug-gnulib] Re: date not parsing full iso-8601 |
Date: |
Wed, 11 May 2005 13:42:35 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Nic Ferrier <address@hidden> writes:
> Note the third item:
>
> $ date --iso-8601=seconds # a GNU extension
> 2000-12-15T11:48:05-0800
Ah, I missed that the first time. Thanks. I installed this patch,
in both coreutils and gnulib:
2005-05-11 Paul Eggert <address@hidden>
* getdate.texi (General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates; it doesn't yet.
Problem reported by Nic Ferrier.
--- getdate.texi 8 Dec 2004 22:25:43 -0000 1.3
+++ getdate.texi 11 May 2005 20:26:49 -0000 1.4
@@ -127,8 +127,8 @@ $ LC_ALL=C TZ=UTC0 date
Mon Mar 1 00:21:42 UTC 2004
$ TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ'
2004-03-01 00:21:42Z
-$ date --iso-8601=ns # a GNU extension
-2004-02-29T16:21:42,692722128-0800
+$ date --iso-8601=ns | tr T ' ' # --iso-8601 is a GNU extension.
+2004-02-29 16:21:42,692722128-0800
$ date --rfc-2822 # a GNU extension
Sun, 29 Feb 2004 16:21:42 -0800
$ date +'%Y-%m-%d %H:%M:%S %z' # %z is a GNU extension.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gnulib] Re: date not parsing full iso-8601,
Paul Eggert <=