Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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
Download (untitled) / with headers
text/plain 366b
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
Download (untitled) / with headers
text/plain 190b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.