bug-coreutils
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]