RE: dst and strtotime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Jake McHenry [mailto:linux@xxxxxxxxxxxxxxxxx]
> Sent: Tuesday, March 13, 2007 11:22 AM
> To: For users of Fedora; PHP-General
> Subject: Re:  dst and strtotime
> 
> A little more info:
> 
> strtotime("last monday")      or yesterday, is correct, but
> strtotime("last
> sunday") gives me 3/10 (saturday), strtotime("last saturday") gives me 3/9
> (Friday), "last friday" gives me 3/8 thursday...... etc. maybe it will go
> away after a week??????
> 


What is the output of the below?

echo date("Y-m-d g:i A T", time());
echo date("Y-m-d g:i A T", strtotime("last sunday"));

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux