Incorrect Julian Day
The following code produces wrong Julian day:
qDebug() << QDate( 622, 7, 16 ) ;
I would expect the results to be:
1948440 or 1948439.5
Instead i get:
you can check the correct Julian date from following websites:
Is it a bug? and should I report it?
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)
I am using it for converting between different calendars. actually I am writing an open source library for Qt which supports some calendars such as Persian and Hijri.