===
indeed truncating to any day of the week can be implemented by user
trivially by adding/subtracting a constant number of days from the
Monday returned.
No, it's not a constant.
$sun = DateTime.new('2010-04-11').trunc( :to ) # 2010-04-11
$mon = DateTime.new('2010-04-11').trunc(
On Tue, Apr 13, 2010 at 12:35 PM, John Williams wrote:
>
>> Asking for the latest prior Sunday or any other weekday is a useful
>> function, but it doesn't really have anything to do with 'truncation'.
>>
>
> Asking for the first of the month is truncating to an even more arbitrary
> interval tha
On Thu, 8 Apr 2010, Carl Mäsak wrote:
Among the cons: we lose the nice symmetry wherein :to clears all
values smaller than days, :to clears all values smaller than
years, etc. :to is still pretty straightforward, but it's a
subtle category error.
Of course. What I really want is for weeks to
Matthew Walton wrote:
On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey wrote:
So, I'll ask again: Where in the official documentation does it state that
Perl 6 names are case sensitive?
I think it's more important to ask where it says that they aren't.
1) Perl 5 is case sensitive, and the ori