Date/Time Manipulation, probably simple.

From: Date: Thu, 13 Jul 2000 21:05:09 +0000
Subject: Date/Time Manipulation, probably simple.
Groups: php.general 
Request: Send a blank email to php-general+get-6541@lists.php.net to get a copy of this message
How do I use 'strtotime' function or equivalent to convert a variable containing a 'date'. I have a date field in a database and would like to produce output for different time zones. I've searched and found that, the following will work using the date() function. But how do I supply 'any' date to the function? this... $eastern = date("g:i A"); $pacific = date("g:i A", strtotime("-3 hour")); $greenwich = date("g:i A", strtotime("+5 hour")); correctly produces... 4:31 PM 1:31 PM 9:31 PM Thanks, Vic victor.tolbert@sidetalk.com

« previous php.general (#6541) next »