bug-coreutils
[Top][All Lists]
Advanced

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

Bug(?) in date concerning 'tomorrow' and 'day'


From: Jonas Mixter
Subject: Bug(?) in date concerning 'tomorrow' and 'day'
Date: Thu, 21 Aug 2003 10:39:00 +0200

Hi!
I've found that date handles the relative items "tomorrow" and "day"
differently. According to the info-page these should be equivalent. (I've
read this in: (coreutils.info)Relative items in date strings)

The oddity that I've found is that tomorrow doesn't add a full day when
daylight saving time starts or ends.

In Sweden daylight savings is ending at October 26 this year.
If one run `date --date="2003-10-26 tomorrow"` to convert an iso-8601 date
into local time (and add a day at the same time), one doesn't get the date
and time of the 27 October but instead the time 23:00 at the 26'th of
October.
If one instead run `date --date="2003-10-26 day"` one get the time and date
of midnight, October 27.

This also seems to apply to the relatives yesterday/day ago. It both applies
to the start and end of daylight savings.
If this is a desired behavior of the relative tomorrow, the difference
between tommorow and day should perhaps be pointed out in the info-page.

I'm not on the bug-tracking mailinglist, so any replies (wich are warmly
welcome) must also be done to my e-mailadress.
I would also like to thank for all the great software that FSF and the GNU
project has given the world!

Best regards, Jonas Mixter





reply via email to

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