bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7223: DATE 8.5 and back -- Invalid date with specific dates


From: Paul Eggert
Subject: bug#7223: DATE 8.5 and back -- Invalid date with specific dates
Date: Fri, 15 Oct 2010 15:47:44 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

On 10/15/10 13:53, Lucien Raven wrote:
> # ./date +%Y --date=20101017
> ./date: invalid date `20101017'

Undoubtedly your time zone setting is
TZ=America/Sao_Paulo, or something like that,
and you're asking for a nonexistent time stamp.
There is no time stamp that is exactly equal to
2010-10-17 00:00:00 in your time zone, because
you move the clocks forward by an hour at that
moment.

Try "date +%Y --date='20101017 12:00'" instead.
That should work unless your time zone setting
is very unusual (and I'm afraid there are some
weird ones like that).





reply via email to

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