[Top][All Lists]
[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: |
Tue, 09 Sep 2008 06:06:17 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Enrique Arizón Benito on 9/9/2008 4:45 AM:
> ||# ||date -s "1970-01-01 00:00:01"
>
> doesn't work.
Thanks for the report. In which way does it not work? What error
message, if any, is printed? What did you expect to happen, when compared
to what actually happened?
>
> In general any hour value amongst 01-23 works. 00 fails!
>
> ||Is that the expected behaviour?
It's hard to say without more details. Perhaps your timezone is a factor,
where all times 01:00:00 and above normalize to a positive number of
seconds since the epoch, but where 00:00:01 normalizes to a time less than
zero given your current timezone, and your system rejects attempt to set
time to a negative value?
- --
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
iEYEARECAAYFAkjGZrkACgkQ84KuGfSFAYBxqQCgqkhgoKv2qQ9XWJkzdkE43VQE
f/4An0Ma6O6dTMSuMEfx8SKyDm5kJv3j
=una0
-----END PGP SIGNATURE-----
- Bug in date?, Enrique Arizón Benito, 2008/09/09
- Re: Bug in date?,
Eric Blake <=