[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME P
From: |
Philip Rowlands |
Subject: |
Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^% |
Date: |
Tue, 30 Oct 2007 16:14:19 +0000 (GMT) |
On Tue, 30 Oct 2007, Jim Meyering wrote:
I'm hardly the authority on such TZ things, but would have thought the
invalid zones are those two intervals (one per line), which are
nominally two and one hours long. It looks like they're two different
views of the same two-real-hour interval. The first uses the DST
(isdst=1) times, and the second non-DST times.
Date's -d option interprets an empty string just like "0", which is
interpreted as 00:00 in the current day.
Ah, that makes the problem easier to present:
$ export TZ=Europe/Paris
$ export LD_PRELOAD=./clock_gettime.so
$ FAKETIME=1193533200 date -d ""
date: invalid date `'
$ FAKETIME=1193533200 date -d "0"
Sun Oct 28 00:00:00 CEST 2007
-d "" and -d "0" are not equivalent in this case.
Cheers,
Phil
- [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Mischa Molhoek, 2007/10/29
- [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Mischa Molhoek, 2007/10/29
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Philip Rowlands, 2007/10/29
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Bob Proulx, 2007/10/29
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Jim Meyering, 2007/10/30
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%,
Philip Rowlands <=
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Jim Meyering, 2007/10/31
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Paul Eggert, 2007/10/31
- Re: [bug #21455] date --date "" "+test" fails ONLY WITHIN CERTAIN TIME PERIOD #$%^%, Jim Meyering, 2007/10/31