note 54749 deleted from function.time by aidan

From: Date: Sat, 08 Oct 2005 01:02:01 +0000
Subject: note 54749 deleted from function.time by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96595@lists.php.net to get a copy of this message
Note Submitter: bensing at gmail dot com ---- Well, couldn't we simply use time() - X to convert the time into our own time zone? Or if retrieving from MySQL DB, SELECT UNIX_TIMESTAMP(timestamp) FROM table; Before applying converttime($timestamp, $num_hrs_ahead); <?php function converttime($t, $num_hrs_ahead) { return $t + $num_hrs_ahead * 60 * 60; } ?>

« previous php.notes (#96595) next »