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