bug-coreutils
[Top][All Lists]
Advanced

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

Re: date calculation problem


From: Eric Blake
Subject: Re: date calculation problem
Date: Thu, 28 Dec 2006 22:45:15 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

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

According to address@hidden on 12/28/2006 6:20 PM:
> Hi
> I have a Red Hat ES4 server. I ran the following date command on 29 
> December 2006 to obtain the month number for 10 months ago.
> Result should be 02 (Feb) but I got 03 (March)

Thanks for the report.  However, this is not a bug.  There is no Feb 29
2006, so the date calculation settled on Mar 1 2006 instead.  That's why
the documentation recommends performing month-based calculations centered
around the middle of a month (also around the middle of a day, to minimize
daylight savings issues, which have similar discontinuities).

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

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

iD8DBQFFlKtr84KuGfSFAYARAjkLAKDDaHPUMNeckhAtNtl7UKS3yPJSJgCePLkc
k8DhT2fWjqjGhtoY+3xgOs4=
=SdsR
-----END PGP SIGNATURE-----




reply via email to

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