Re: Temporal.pod truncate

2010-04-13 Thread yary
=== 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(

Re: Temporal.pod truncate

2010-04-13 Thread Mark J. Reed
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

Re: Temporal.pod truncate

2010-04-13 Thread John Williams
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

Re: Documentaion Details (was: underscores vs hyphens)

2010-04-13 Thread Shawn H Corey
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