(12C) Gregorian Date to Julian Day Number and vice versa
|
01-14-2019, 09:28 PM
Post: #7
|
|||
|
|||
RE: (12C) Gregorian Date to Julian Day Number and vice versa
(01-14-2019 06:27 PM)Albert Chan Wrote: I thought so too, until I tried Julian Day Number Calculator. From the sources: Code: <!-- This is what an HTML comment looks like (This line terminates HTML comment) --> Good to know. This gave me a chuckle. And the fact that the page was was last modified on 980126. Will we eventually find a Y2K bug? The algorithm is described on a related page: Quote:It is easy (with your calculator) to calculate the Julian Day Number of any date given on the Gregorian Calendar. The Julian Day Number so calculated will be for 0 hours, GMT, on that date. Here's how to do it: But this appears to be what's calculated in the JavaScript sources: Code: if(M<3) { Which appears to be consistent with Dieter's link to Wikipedia: Quote:wenn Monat > 2 dann Y = Jahr, M = MonatExcept that the variable H for hours is missing. And that's what I got for 2000-01-01 using Python: Code: >>> Y, M, D = 2000 - 1, 1 + 12, 1 But I have to admit that I still don't really understand the difference between Julian Date and Julian Day Number. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Gregorian Date to Julian Day Number and vice versa - Dieter - 01-14-2019, 12:54 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Albert Chan - 01-14-2019, 03:50 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Dieter - 01-14-2019, 04:58 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Albert Chan - 01-14-2019, 05:30 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Dieter - 01-14-2019, 05:52 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Albert Chan - 01-14-2019, 06:27 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Thomas Klemm - 01-14-2019 09:28 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Albert Chan - 01-15-2019, 12:43 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Albert Chan - 01-16-2019, 05:13 PM
RE: (12C) Gregorian Date to Julian Day Number and vice versa - Dieter - 01-16-2019, 05:42 PM
|
User(s) browsing this thread: 2 Guest(s)