note 64864 added to function.gregoriantojd

From: Date: Sat, 22 Apr 2006 04:36:12 +0000
Subject: note 64864 added to function.gregoriantojd
Groups: php.notes 
Request: Send a blank email to php-notes+get-108979@lists.php.net to get a copy of this message
<?php function gregorianToJD($month, $day, $year) { // Note: The following algorithm is based // on a paper by Peter Baum, pbaum@capecod.net // This function taken from: http://www.zend.com/zend/tut/dynamic.php if($month < 3) { $month = $month + 12; $year = $year - 1; } $jd = $day + floor((153 * $month - 457) / 5) + 365 * $year + floor($year / 4) - floor($year / 100) + floor($year / 400) + 1721118.5; return($jd); } ?> ---- Server IP: 216.194.113.175 Probable Submitter: 24.34.82.182 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.gregoriantojd.php Edit -- http://master.php.net/note/edit/64864 Del: integrated -- http://master.php.net/note/delete/64864/integrated Del: useless -- http://master.php.net/note/delete/64864/useless Del: bad code -- http://master.php.net/note/delete/64864/bad+code Del: spam -- http://master.php.net/note/delete/64864/spam Del: non-english -- http://master.php.net/note/delete/64864/non-english Del: in docs -- http://master.php.net/note/delete/64864/in+docs Del: other reasons-- http://master.php.net/note/delete/64864 Reject -- http://master.php.net/note/reject/64864 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108979) next »