note 57819 added to ref.datetime

From: Date: Sat, 15 Oct 2005 03:18:41 +0000
Subject: note 57819 added to ref.datetime
Groups: php.notes 
Request: Send a blank email to php-notes+get-97045@lists.php.net to get a copy of this message
Hi I just want to say thanks a lot to the man who wrote a solution about a problem of the date-difference. /*A much easier way to do days diff is to use Julian Days from the Calendar functions: $start = gregoriantojd($smon, $sday, $syear); $end = gregoriantojd($emon, $eday, $eyear); $daysdiff = $end - $start; You can see the obvious ways to wrap a function around that.*/ ---- Manual Page -- http://www.php.net/manual/en/ref.datetime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57819 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57819&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57819&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97045) next »