note 43470 added to function.jdtogregorian

From: Date: Tue, 22 Jun 2004 14:37:49 +0000
Subject: note 43470 added to function.jdtogregorian
Groups: php.notes 
Request: Send a blank email to php-notes+get-71501@lists.php.net to get a copy of this message
JD days may have decimal fractions which correspond to the time of day. The Julian day begins at noon, and the decimal fraction measures fractional days until the beginning of the next day at noon. For instance, Julian Day 2453179.00000 is June 22, 2004, at 12:00pm (noon). One hour later, it's 2453179.04167 At 2453179.20833 I'll have dinner, and at 2453179.45833, it's time for the evening news. After a good night of sleep, my alarm will go off at 2453179.83333, then at noon on June 23, a new Julian Day begins at 2453180. To use these functions with fractional days, strip the fractional part with floor(), and apply the function to the integer part. Then add 12 hours, bringing you to noon of that day. That is the actual time returned by JDToGregorian(). Then add the fractional part of the day, by multiplying the decimal part of the Julian Day by (24*60*60) seconds. This may take you forward or backward to a different Gregorian calendar date. ---- Manual Page -- http://www.php.net/manual/en/function.jdtogregorian.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43470 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43470&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43470&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71501) next »