Julian day of the year in Java

后端 未结 9 1039
挽巷
挽巷 2020-11-30 12:12

I have seen the \"solution\" at http://www.rgagnon.com/javadetails/java-0506.html, but it doesn\'t work correctly. E.g. yesterday (June 8) should have been 159, but it said

9条回答
  •  半阙折子戏
    2020-11-30 13:02

    I've read all the posts and something's not very clear I think.

    user912567 mentionned Jean Meeus, and he's absolutely right

    The most accurate definition I've found is given by Jean Meeus in its "Astronomical Algorithms" book (a must have, really...).

    Julian Date is a date, expressed as usual, with a year, a month and a day.

    Julian Day is a number (a real number), counted from year -4712 and is "...a continuous count of days..." (and fraction of day). A usefull time scale used for accurate astronomical calculations.

    Jean Meeus : "The Julian Day has nothing to do with the Julian calendar" ("Astronomical Algorithms", 2nd Edition, p.59)

提交回复
热议问题