note 62570 deleted from ref.datetime by felipe

From: Date: Mon, 10 Dec 2007 17:47:42 +0000
Subject: note 62570 deleted from ref.datetime by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133205@lists.php.net to get a copy of this message
Note Submitter: ---- A quick one liner to round a timestamp to the next full hour. ie, 8:36 => 9:00, 9:02 => 10:00 $timestamp = ceil(time()/3600)*3600;

« previous php.notes (#133205) next »