On Wed, 9 Oct 2013, Tomas Pokorny via RT wrote:
Show quoted text> ------------
> Smaple code:
> ------------
>
> use DateTime;
>
> my $date = DateTime->now;
> print "$date\n";
>
> $date->truncate(to => week);
> print "$date\n", $date->local_day_of_week."\n";
>
> -------
> Output:
> -------
>
> 2013-10-09T10:26:27
> 2013-10-07T00:00:00
> 2
I think this is a doc bug. Truncate always uses Monday as the start of the
week.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/