bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug in date


From: Eric Blake
Subject: Re: bug in date
Date: Thu, 09 Jul 2009 20:42:56 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Emily Lane on 7/9/2009 6:38 PM:
> I seem to have come across an anomaly in the date function.  It only seems to 
> happen for April 5th
> e.g.
>> date --date "20090405 24 hour" +%d
> 05
>> date --date "20090405 24 hour" +%m
> 04
> 
> For any other day this correctly adds 24 hours to the date.

Not a bug; you are running into daylight savings issues.  See the FAQ:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpWqrAACgkQ84KuGfSFAYAEYACeO9T/lRJBDNnBZ0SAQSld6Nr4
Dy0An2YGmIHNkzQ79g4e2nR2Xae6WqbV
=bY25
-----END PGP SIGNATURE-----




reply via email to

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