php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12589 juliantojd () returns incorrect JD
Submitted: 2001-08-06 07:22 UTC Modified: 2001-08-06 07:29 UTC
From: kovi at hms dot hu Assigned:
Status: Not a bug Package: Calendar related
PHP Version: 4.0.5 OS: Win2K
Private report: No CVE-ID: None
 [2001-08-06 07:22 UTC] kovi at hms dot hu
juliantojd() returns incorrect Julian Days, i.e juliantojd (7,30,2001) returns 2452134 instead of 2452121. 
See http://www.aavso.org/cdata/jdcalendar.stm 
(But jddayofweek() works well with the proper JD!)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-06 07:28 UTC] kovi at hms dot hu
I was confused with the julian and gregorian calendars...
 [2001-08-06 07:29 UTC] sniper@php.net
user error. :)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 09:01:28 2024 UTC