[EMAIL PROTECTED] wrote: > I believe I've found a small bug in date. I am in the United Kingdom and we > have daylight saving whereby the clocks go forward one hour at 2am on the > 30th March, meaning Grenwich Mean Time (GMT) is replaced by British Summer > Time (BST). Our system clocks are set to reflect this, but during the time > between midnight and 1am on the 31st March the date program gives me an > incorrect value when I ask for yesterday's date: > > [EMAIL PROTECTED] root]# date 03310055 > Mon Mar 31 00:55:00 BST 2003 > [EMAIL PROTECTED] root]# date --date=yesterday > Sat Mar 29 23:55:04 GMT 2003 > [EMAIL PROTECTED] root]# > > > As you can see, March 30th has disappeared! Here are the some details about > the platform I am using:
Thank you for that report, but I don't think it's a bug. date interprets `yesterday' as meaning `24 hours earlier', so it's doing what it's supposed to, since March 30 had only 23 hours. _______________________________________________ Bug-sh-utils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-sh-utils