note 103319 added to class.dateinterval

From: Date: Thu, 07 Apr 2011 02:45:14 +0000
Subject: note 103319 added to class.dateinterval
Groups: php.notes 
Request: Send a blank email to php-notes+get-178582@lists.php.net to get a copy of this message
If I do the following: $dateInterval = date_sub(date1, date0); a = $dateInterval.days Am I guaranteed to get the right answer? In what cases is .days "unknown" and therefore set to FALSE? Thanks! ---- Server IP: 208.69.120.55 Probable Submitter: 173.227.18.130 ---- Manual Page -- http://www.php.net/manual/en/class.dateinterval.php Edit -- https://master.php.net/note/edit/103319 Del: integrated -- https://master.php.net/note/delete/103319/integrated Del: useless -- https://master.php.net/note/delete/103319/useless Del: bad code -- https://master.php.net/note/delete/103319/bad+code Del: spam -- https://master.php.net/note/delete/103319/spam Del: non-english -- https://master.php.net/note/delete/103319/non-english Del: in docs -- https://master.php.net/note/delete/103319/in+docs Del: other reasons-- https://master.php.net/note/delete/103319 Reject -- https://master.php.net/note/reject/103319 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178582) next »