Incorrect Julian Day
Solved
General and Desktop
-
The following code produces wrong Julian day:
qDebug() << QDate( 622, 7, 16 ) ;
I would expect the results to be:
1948440 or 1948439.5Instead i get:
1948437you can check the correct Julian date from following websites:
http://numerical.recipes/julian.html
http://aa.usno.navy.mil/data/docs/JulianDate.phpIs it a bug? and should I report it?
-
@Pswin
Why do you assume you should get a Julian calendar date? The class may use that internally, but still the most widely used calendar nowadays is the Gregorian ... also there's this: QDate::toJulianDay -
Your using the gregorian calender as input, not the julian calender.
There is a gap of three days (see http://www.wolframalpha.com/input/?i=julian+date+622-7-16)