100%
|
date();
May 15, 2005 11:15:22 GMT -8
Post by Aaron on May 15, 2005 11:15:22 GMT -8
I need help with the date function.
I want to display the date in PDT (-7) or PST (-8). How would I modify the date function to display it in that time?
|
|
|
date();
Jul 20, 2005 13:45:01 GMT -8
Post by Hamirick on Jul 20, 2005 13:45:01 GMT -8
Don't know if you still want it but try this.... i'm not sure, but i think it's right. <?php $pdt = strtotime("-7 hour"); echo 'Time: '. date('Y-m-d', $pdt) ."\n"; ?>
I've not tested it yet tho.
Last Edit: Jul 20, 2005 13:45:50 GMT -8 by Hamirick
|
|