> Small feature request:
> $dt.truncate( :to<week> );
> is somewhat ambiguous, since some people start their week on Sunday, while
> the module truncates to Monday.
> Would you consider a less ambiguous week truncation?
> $dt.truncate( :to<sunday> );
> $dt.truncate( :to<monday> );
I had the same thought, actually. I see both pros and cons.
Among the pros: we'll cater to both the Sunday-starters and
Monday-starters out there, just as you say.
Among the cons: we lose the nice symmetry wherein :to<day> clears all
values smaller than days, :to<year> clears all values smaller than
years, etc. :to<monday> is still pretty straightforward, but it's a
subtle category error.
Apart from that, I wouldn't mind making the change. Though maybe we
should take a step backward and just remove :to<week> altogether on
the grounds that it doesn't belong, and is more confusing than useful.