|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-01-12 19:58 UTC] heiglandreas@php.net
-Status: Open
+Status: Not a bug
[2017-01-12 19:58 UTC] heiglandreas@php.net
[2017-01-12 20:35 UTC] satovey at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 22:00:01 2025 UTC |
Description: ------------ I am using Xamp on Windows 7 x64 in case that is relevant. The following two sites: http://www.fourmilab.ch/documents/calendar/ http://quasar.as.utexas.edu/BillInfo/JulianDateCalc.html are in agreement. They produce a Julian Day count of 2455646.5 for 3/26/2011. However, PHP's jdtogregorian() functions produces the following: 2455646.5 => 3/25/2011 || 2455647.5 => 3/26/2011 Test script: --------------- $julianDayCntI = 2455646.5; $julianDayCntII = 2455647.5; $gregDateI = jdtogregorian($julianDayCntI); $gregDateII = jdtogregorian($julianDayCntII); echo "$julianDayCntI => $gregDateI || $julianDayCntII => $gregDateII <br />"; Expected result: ---------------- I do not have the mathematical skills to fix this bug, so I will leave correcting this bug it up to those who are more mathematically astute.