Subject: | ParseDate returns same value for "last DOW" and "DOW" on Sunday |
ParseDate returns the same value for "last <day of week>" and "<day of
Show quoted text
week>" if ran on Sunday. Example code is attached:
bash-2.05# date
Sun Jan 29 20:13:39 EST 2006
bash-2.05# perl
use Date::Manip;
($date)= ParseDate("01:00 EST Saturday");
($date1)= ParseDate("01:00 EST last Saturday");
print "$date\n$date1\n";
Show quoted text--- Output ---
2006012801:00:00
2006012801:00:00