note 102268 added to dateinterval.construct

From: Date: Sat, 05 Feb 2011 00:42:39 +0000
Subject: note 102268 added to dateinterval.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-176695@lists.php.net to get a copy of this message
It should be noted that this class will not calculate days/hours/minutes/seconds etc given a value in a single denomination of time. For example: <?php $di = new DateInterval('PT3600S'); echo $di->format('%H:%i:%s'); ?> will yield 0:0:3600 instead of the expected 1:0:0 ---- Server IP: 216.235.13.26 Probable Submitter: 64.180.62.209 ---- Manual Page -- http://www.php.net/manual/en/dateinterval.construct.php Edit -- https://master.php.net/note/edit/102268 Del: integrated -- https://master.php.net/note/delete/102268/integrated Del: useless -- https://master.php.net/note/delete/102268/useless Del: bad code -- https://master.php.net/note/delete/102268/bad+code Del: spam -- https://master.php.net/note/delete/102268/spam Del: non-english -- https://master.php.net/note/delete/102268/non-english Del: in docs -- https://master.php.net/note/delete/102268/in+docs Del: other reasons-- https://master.php.net/note/delete/102268 Reject -- https://master.php.net/note/reject/102268 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176695) next »