note 57583 added to function.time

From: Date: Sat, 08 Oct 2005 00:14:54 +0000
Subject: note 57583 added to function.time
Groups: php.notes 
Request: Send a blank email to php-notes+get-96590@lists.php.net to get a copy of this message
* A simple function for calculating the number of seconds, minutes, etc in a timestamp is here: http://aidan.dotgeek.org/repos/?file=Duration.php Example: <?php $time = 60*60*2 + 20*60 + 5; // Gives 2 hours, 20 minutes, 5 seconds echo Duration::toString($time); ?> * For manipulating arbitrary format, or length timestamps, see the PEAR::Date class. http://pear.php.net/package/Date/ * PHP 6 will be shipping a new inbuilt date and timestamp manipulation API. It's available on PECL here: http://pecl.php.net/package/date_time ---- Manual Page -- http://www.php.net/manual/en/function.time.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57583 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57583&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57583&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96590) next »