Skip Menu |

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 17365
Status: resolved
Priority: 0/
Queue: DateManip

People
Owner: Nobody in particular
Requestors: vitalik_nyc [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.44
Fixed in: (no value)



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
That is not a bug. "DOW" refers to a DOW in the current week. Since the week runs (by default using ISO 8601 standards) from Mon-Sun, "Saturday" and "last Saturday" refer to the same date.