# Difference between revisions of "Julian Day"

Julian day is a count of days since the beginning of the Julian period, used to calculating days between any two events.

The calendar, with twelve months of the year, each with varying number of days, and February with 28 or twenty nine days in leap years, makes it difficult and complicated to calculate the time between any two events. Joseph Scaliger proposed that a Julian Period be used to time events, beginning at a time sufficiently far in the past as to precede dates in recorded history. The Julian period begins Monday, 1 January 4713 B.C.

Julian Day counts the number of days from the beginning of the Julian period allowing the calculating of event times. Julian Day Number is an integer number assigned to any one day, the JD beginning at noon. The Julian Date is an instant given as a decimal part of the day since the previous noon.

The Modified Julian Date is the number of days (and fractional days) elapsed since midnight GMT on 17 November 1858. This is 2400000.5 smaller than the standard Julian Date.

In Orbiter it is used to define the current time in scenario files; it is also displayed in the HUD.

## Calculations

To convert a Gregorian calendar date to Julian Day Number, used for dates on or after 15 October 1582 for Catholic countries, other countries changed on other dates):

JDN = (1461 × (Y + 4800 + (M − 14)/12))/4 +(367 × (M − 2 − 12 × ((M − 14)/12)))/12 − (3 × ((Y + 4900 + (M - 14)/12)/100))/4 + D − 32075

where

• Y = year
• M = month (1-12)
• D = day of month (1-31)

To convert a Julian calendar date to Julian Day Number, used for dates on or before 4 October 1582 for Catholic countries, other countries changed on other dates):

JDN = 367 × Y − (7 × (Y + 5001 + (M − 9)/7))/4 + (275 × M)/9 + D + 1729777

where

• Y = year
• M = month (1-12)
• D = day of month (1-31)

To convert Julian Day Number to Julian Date, given time of day: JD = JDN + (h - 12)/24 + m/1440 + s/86400

where

• h = hour
• m = minute
• s = second

To convert Julian Date to Modified Julian Date as used by Orbiter: MJD is used since the beginning of the space program.

MJD = JD - 2400000.5
{"ft_lang_label":"__label__en","ft_lang_prob":0.862987,"math_prob":0.9901511,"size":4623,"snap":"2022-40-2023-06","text_gpt3_token_len":1335,"char_repetition_ratio":0.13596016,"word_repetition_ratio":0.71794873,"special_character_ratio":0.35842526,"punctuation_ratio":0.080091536,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9955168,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-28T08:56:06Z\",\"WARC-Record-ID\":\"<urn:uuid:b7286f6b-d552-4d6e-8bf8-9c48845bf2fc>\",\"Content-Length\":\"34533\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:560d7096-0577-4133-9c44-fde185317505>\",\"WARC-Concurrent-To\":\"<urn:uuid:f7b14331-5c18-44e1-aba1-d048e4a2556c>\",\"WARC-IP-Address\":\"54.38.150.10\",\"WARC-Target-URI\":\"https://www.orbiterwiki.org/index.php?title=Julian_Day&diff=418838&oldid=418180\",\"WARC-Payload-Digest\":\"sha1:XRTFOPAJCHGJ7FY6EJ5MW6FNIDXW3UJU\",\"WARC-Block-Digest\":\"sha1:4ZODEOBFXXSNUDX2H77DHMTX6FJ2NEMX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335190.45_warc_CC-MAIN-20220928082743-20220928112743-00008.warc.gz\"}"}