note 51040 added to function.gregoriantojd

From: Date: Thu, 17 Mar 2005 21:34:54 +0000
Subject: note 51040 added to function.gregoriantojd
Groups: php.notes 
Request: Send a blank email to php-notes+get-86599@lists.php.net to get a copy of this message
You can obtain the decimal fraction of the Julian date with the php gregoriantojd() function or the function shown below by applying this code to the returned value. $julianDate = gregoriantojd($month, $day, $year); //correct for half-day offset $dayfrac = date('G') / 24 - .5; if ($dayfrac < 0) $dayfrac += 1; //now set the fraction of a day $frac = $dayfrac + (date('i') + date('s') / 60) / 60 / 24; $julianDate = $julianDate + $frac; ---- Manual Page -- http://www.php.net/manual/en/function.gregoriantojd.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51040 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51040&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51040&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51040&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51040&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51040&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51040&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86599) next »