note 62375 deleted from function.gettimeofday by bobby

From: Date: Thu, 07 Sep 2006 19:03:59 +0000
Subject: note 62375 deleted from function.gettimeofday by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116869@lists.php.net to get a copy of this message
Note Submitter: ricky dot blankenaufulland at leonardo dot de ---- I was expecting gettimeofday would give me the number of seconds of the day. But if you access the "sec" index of the array it is identical to time() (so, unix timestamp, seconds since 1970). So for others have to help them quicker, to get the number of seconds of the day, try this: <?php $t = time() % 86400; ?>

« previous php.notes (#116869) next »