[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Date: next year broken
From: |
Heikki Levanto |
Subject: |
Date: next year broken |
Date: |
Wed, 27 Dec 2000 15:45:21 +0100 |
I have found a problem with date. This year is 2000, so one would assume the
next year to be 2001, not 2002. And certainly last year was 1999, not 2002.
$ date
Wed Dec 27 15:32:38 CET 2000
$ date --date "5 feb"
Sat Feb 5 00:00:00 CET 2000
$ date --date "5 feb this year"
Mon Feb 5 00:00:00 CET 2001
$ date --date "5 feb next year"
Tue Feb 5 00:00:00 CET 2002
$ date --date "5 feb last year"
Tue Feb 5 00:00:00 CET 2002
$ date --version
date (GNU sh-utils) 2.0
Written by David MacKenzie.
For the case it makes any difference, this is on a RedHat Linux 6.2
Also, a wish: A way to specify the next time a date matches, like
"forthcoming 5 feb" which should evaluate to 5 Feb, 2001. And its
counterpart, previous, "previous Feb 5" -> 5 Feb 2000, and "Previous 31 Dec"
-> 31 Dec 1999. And why not a nearest as well "nearest feb" -> Feb 2001,
"nearest oct" -> oct 2000.
--
Heikki Levanto address@hidden "In Murphy We Turst"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Date: next year broken,
Heikki Levanto <=