Subject: | week values not consistent with docs? |
Hi,
I seem to find that the week of the year reported for days near the end
of December is not consistent with the documentation. If a week is
defined as Sunday -> Saturday, (days 0 to 6), and the first week of the
year is the first week with a Thursday in the new year, than I would
expect Saturday, 29-Dec-2007 to be in week 52 of 2007.
perl -e 'use Date::Tie; my $date = Date::Tie->new( year => 2007, month
=> 12, day => 29 ); print $date->{week}, "\n";'
01
Likewise, I would expect 31-Dec-2005 to be week 52 or 53, (instead of 1)
as that year began on a Sunday.
I may just be reading the docs incorrectly, but I ran into the problem
when I defined a start time as the beginning of a week (weekday 0), for
the first week of 2008, and then went back a day, I was still stuck in
week 1.
Thanks!
Subject: | tie_context_diff |
Message body not shown because it is not plain text.