# from Keith Ivey
# on Friday 04 January 2008 07:40:
>Do you really need to handle "this Sunday"?
Yes, though Monday-Friday will probably see more usage.
>In my experience, the
>meaning of the phrase differs depending on whether the sentence is
> about the past or the future, and I've never heard of anyone
> consistently using it to mean "the Sunday of the current week".
The phrases "this week", "next week", and "last week" are fairly
unambiguous, so I'm taking "this Monday" to mean "this week's Monday".
A sketch:
my $this_monday = $date->this('monday');
my $next_tues = $date->next('tu');
my @last_month = $date->last('month');
my $feb_1st = today->next('month');
my $jan_6th = today->next('week');
That's assuming non-ISO weeks. Obviously, the endpoint needs to be
defined for 'this week' to make sense. If the first day of the week is
given, it follows that "this/next/last $dayname" can be meaningful.
I'm not particularly concerned with whether that meaning exactly
matches regional quirks so long as it is consistent.
--Eric
--
"Insert random misquote here"
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------