Matt Frye wrote:
On 4/4/06, Brian Henning <[EMAIL PROTECTED]> wrote:
...why aren't you using PHP's built-in date/time functions?
Ok.
But...
echo date("Y-m-d",strtotime("last Monday")), "\n";
yet gives me 2006-04-03 instead of 2006-03-27.
Um, yes? Today is Tuesday. "Last Monday" was yesterday. I guess it's
a difference in interpretation of "last." We often use "last" to mean
"the day by that name which was a part of 'last week'." PHP understands
it to mean "the last day by that name which occurred."
Cheers,
~Brian
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/