RE: [PHP] timestamp according to timezone?

From: Date: Thu, 12 Aug 2004 13:17:55 +0000
Subject: RE: [PHP] timestamp according to timezone?
Groups: php.general 
Request: Send a blank email to php-general+get-193558@lists.php.net to get a copy of this message
On 12 August 2004 14:07, Justin French wrote: > Hi, > > How can I get a unix timestamp of the current timezone, rather than > GMT as supplied by time()? Sorry, but this question makes no sense to me. A timestamp is absolute and is always in GMT, taking no account of timezones -- that's just the way it's defined. If you want a time in the current timezone, you have to feed the (absolute, GMT) timestamp through something that knows how to adjust for timezones, such as date(). Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#193558) next »