I'm currently writing some php code to convert dates from the Gregorian Calendar to the Hebrew Calendar. Looking at the php calendar functions, I found that it has functions to convert from Gregorian to Julian days and Julian days to Hebrew. However, there is no function I could find to directly convert from Gregorian to Hebrew.
Out of curiousity, I wanted to see if a direct conversion was possible. While researching this though, I found that it seems to be standard to convert dates to Julian days, and then to the desired calendar system.
I found this in a few libraries like: http://www.php.net/manual/en/ref.calendar.php http://www.fourmilab.ch/documents/calendar/calendar.js
and mentioned on a forum post here: http://www.physicsforums.com/showthread.php?t=173119
Whats bugging me is why! Is it a standard decided on by some group? Is it just done this way historically?
Wouldn't it be more efficient to come up with algorithms to directly convert dates? or conversely, what makes Julian days so efficient?