bug-coreutils
[Top][All Lists]
Advanced

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

Re: a bug in date concerning daylight saving time


From: Eric Blake
Subject: Re: a bug in date concerning daylight saving time
Date: Fri, 28 Sep 2007 18:25:45 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

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

According to Lao DanTong on 9/28/2007 5:43 PM:
> $ date --date 2007-02-30
> Fri Mar  2 00:00:00 BRT 2007
> 
> as the date used to do in old times. I don't think this could be harmful
> in any way, and the result IS meaningful.

But what if I wanted it to print this instead?
Wed Feb 28 00:00:00 BRT 2007

The point of making it an error was because no matter how you resolve an
ambiguity, someone else wants it resolved in the opposite direction.  The
easiest way to treat both demands equally is to complain loudly that it is
ambiguous, rather than trying one of the options and guessing wrong.

- --
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

iD8DBQFG/ZuI84KuGfSFAYARApaSAJ9tyEb1qhI49hBT+Ca2+8l0SSdxywCfWO8X
vR2Wey1ZFeW+4pa/JV2ahcE=
=bNpo
-----END PGP SIGNATURE-----




reply via email to

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