All Topics  
Julian day

 

   Email Print
   Bookmark   Link






 

Julian day



 
 
The Julian date (JD) is the interval of time in days and fractions of a day, since January 1, 4713 BC Greenwich noon, Julian proleptic calendar. In precise work, the timescale, e.g., Terrestrial Time
Terrestrial Time

Terrestrial Time is the modern astronomical time standard for the passage of time on the surface of the Earth . Since time moves at different rates for observers in different locations , and "the surface of the Earth" is not a single point in space, TT is a theoretical ideal; its measurement is approximated by the International Atomic Time...
 (TT) or Universal Time
Universal Time

Universal Time is a timescale based on the rotation of the Earth. It is a modern continuation of Greenwich Mean Time , i.e., the mean solar time on the meridian of Royal Observatory, Greenwich, and GMT is sometimes used loosely as a synonym for UTC....
 (UT), should be specified.

The Julian day number (JDN) is the integral part of the Julian date (JD). Negative values can also be used, although those predate all recorded history
Recorded history

Recorded history can be defined as human history that has been written down or recorded by the use of language, whereas history is a more general term referring to any information about the past....
. Now, at the Julian day number is .

A Julian date of 2454115.05486 means that the date and Universal Time is Sunday January 14, 2007 at 13:18:59.9.

The decimal parts of a Julian date:
0.1 = 2.4 hours or 144 minutes or 8640 seconds
0.01 = 0.24 hours or 14.4 minutes or 864 seconds
0.001 = 0.024 hours or 1.44 minutes or 86.4 seconds
0.0001 = 0.0024 hours or 0.144 minutes or 8.64 seconds
0.00001 = 0.00024 hours or 0.0144 minutes or 0.864 seconds.

Almost 2.5 million Julian days have elapsed since the initial epoch.






Discussion
Ask a question about 'Julian day'
Start a new discussion about 'Julian day'
Answer questions from other users
Full Discussion Forum



Encyclopedia


The Julian date (JD) is the interval of time in days and fractions of a day, since January 1, 4713 BC Greenwich noon, Julian proleptic calendar. In precise work, the timescale, e.g., Terrestrial Time
Terrestrial Time

Terrestrial Time is the modern astronomical time standard for the passage of time on the surface of the Earth . Since time moves at different rates for observers in different locations , and "the surface of the Earth" is not a single point in space, TT is a theoretical ideal; its measurement is approximated by the International Atomic Time...
 (TT) or Universal Time
Universal Time

Universal Time is a timescale based on the rotation of the Earth. It is a modern continuation of Greenwich Mean Time , i.e., the mean solar time on the meridian of Royal Observatory, Greenwich, and GMT is sometimes used loosely as a synonym for UTC....
 (UT), should be specified.

The Julian day number (JDN) is the integral part of the Julian date (JD). Negative values can also be used, although those predate all recorded history
Recorded history

Recorded history can be defined as human history that has been written down or recorded by the use of language, whereas history is a more general term referring to any information about the past....
. Now, at the Julian day number is .

A Julian date of 2454115.05486 means that the date and Universal Time is Sunday January 14, 2007 at 13:18:59.9.

The decimal parts of a Julian date:
0.1 = 2.4 hours or 144 minutes or 8640 seconds
0.01 = 0.24 hours or 14.4 minutes or 864 seconds
0.001 = 0.024 hours or 1.44 minutes or 86.4 seconds
0.0001 = 0.0024 hours or 0.144 minutes or 8.64 seconds
0.00001 = 0.00024 hours or 0.0144 minutes or 0.864 seconds.

Almost 2.5 million Julian days have elapsed since the initial epoch. JDN 2,400,000 was November 16, 1858. JD 2,500,000.0 will occur on August 31, 2132 at noon UT.

If the Julian date of noon is applied to the entire midnight-to-midnight civil day centered on that noon, rounding Julian dates (fractional days) for the twelve hours before noon up while rounding those after noon down, then the remainder upon division by 7 represents the day of the week, with 0 representing Monday, 1 representing Tuesday, and so forth. Now at the nearest noon JDN is yielding a remainder of .

The Julian day number can be considered a very simple calendar
Calendar

A calendar is a system of organize days for a social, religious, commercial or administrative purpose. This organization is done by giving names to periods of time ? typically days, weeks, months and years....
, where its calendar date
Calendar date

A date in a calendar is a reference to a particular day represented within a calendar system. The calendar date allows the specific day to be identified....
 is just an integer. This is useful for reference, computations, and conversions. It allows the time between any two dates in history to be computed by simple subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
.

The Julian day system was introduced by astronomers to provide a single system of dates that could be used when working with different calendars and to unify different historical chronologies. Apart from the choice of the zero point and name, this Julian day and Julian date are not directly related to the Julian calendar
Julian calendar

The Julian calendar, a reform of the Roman calendar, was introduced by Julius Caesar in 46 BC, and came into force in 45 BC . It was chosen after consultation with the astronomer Sosigenes of Alexandria and was probably designed to approximate the tropical year, known at least since Hipparchus....
, although it is possible to convert any date from one calendar to the other.

Julian Date


Historical Julian dates were recorded relative to GMT or Ephemeris Time
Ephemeris time

The term ephemeris time is in itself apt to refer to time in connection with any Astronomical Ephemeris. It has been used more specifically to refer:-...
, but the International Astronomical Union
International Astronomical Union

The International Astronomical Union is a collection of professional astronomers, at the Ph.D. level and beyond, active in professional research and education in astronomy....
 now recommends that Julian Dates be specified in Terrestrial Time
Terrestrial Time

Terrestrial Time is the modern astronomical time standard for the passage of time on the surface of the Earth . Since time moves at different rates for observers in different locations , and "the surface of the Earth" is not a single point in space, TT is a theoretical ideal; its measurement is approximated by the International Atomic Time...
, and that when necessary to specify Julian Dates using a different time scale, that the time scale used be indicated when required, such as JD(UT1). The fraction of the day is found by converting the number of hours, minutes, and seconds after noon into the equivalent decimal fraction.

The term Julian date is also used to refer to:
  • Julian calendar
    Julian calendar

    The Julian calendar, a reform of the Roman calendar, was introduced by Julius Caesar in 46 BC, and came into force in 45 BC . It was chosen after consultation with the astronomer Sosigenes of Alexandria and was probably designed to approximate the tropical year, known at least since Hipparchus....
     dates
  • ordinal dates
    ISO 8601

    ISO 8601 is an international standard for calendar date and time representations issued by the International Organization for Standardization . Specifically, the standard is titled "Data elements and interchange formats ? Information interchange ? Representation of dates and times"....
     (day-of-year)


The use of Julian date to refer to the day-of-year (ordinal date) is usually considered to be incorrect, however it is widely used that way in the earth sciences and computer programming.

Alternatives


Because the starting point is so long ago, numbers in the Julian day can be quite large and cumbersome. A more recent starting point is sometimes used, for instance by dropping the leading digits, in order to fit into limited computer memory with an adequate amount of precision.

Name Current Epoch Calculation Current Value Notes
Julian Date (JD) BC 4713-01-01 12:00, Monday   
Julian Day Number (JDN) BC 4713-01-01 12:00, Monday JDN = floor (JD) Changes at noon UT or TT
Chronological Julian Day (CJD) BC 4713-01-01 00:00, Monday JDN = floor (JD + 0.5) (UT) Specific to time zone; UT CJD given
Reduced Julian Day (RJD) 1858-11-16 12:00, Tuesday RJD = JD - 2400000 Used by astronomers
Modified Julian Day (MJD) 1858-11-17 00:00, Wednesday MJD = JD - 2,400,000.5 Introduced by SAO
Smithsonian Astrophysical Observatory

The Smithsonian Astrophysical Observatory is a "research institute" of the Smithsonian Institution headquartered in Cambridge, Massachusetts, where it is joined with the Harvard College Observatory to form the Harvard-Smithsonian Center for Astrophysics ....
 in 1957, Note that it starts from midnight rather than noon.
Truncated Julian Day (TJD) 1968-05-24 00:00, Friday
1995-10-10 00:00, Tuesday
TJD = JD - 2440000.5
TJD = (JD - 0.5) mod 10000

- Definition as introduced by NASA
- NIST definition
Dublin Julian Day (DJD) 1899-12-31 12:00, Sunday DJD = JD - 2415020 Introduced by the IAU
IAU

IAU may refer to:*International Astronomical Union*International American University*International Association of Universities*International Association of Ultra Runners for ultramarathoners....
 in 1955
Lilian Day Number 1582-10-15, Friday (as Day 1) floor (JD - 2299160.5) The count of days of the Gregorian calendar
Gregorian calendar

The Gregorian calendar is the internationally accepted civil calendar. It was first proposed by the Calabrian doctor Aloysius Lilius, and decreed by Pope Gregory XIII, after whom it was named, on 24 February 1582 by the papal bull Inter gravissimas....
 for Lilian date reckoned in Universal time.
ANSI
American National Standards Institute

The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
 Date
1601-01-01, Monday (as Day 1) floor (JD - 2305812.5) The origin of COBOL
COBOL

COBOL is one of the oldest programming languages still in active use. Its name is an acronym for COmmon Business-Oriented Language, defining its primary domain in business, finance, and administrative systems for companies and governments....
 integer dates
Rata Die
Rata Die

Rata Die is a system for assigning numbers to calendar days , independent of any calendar, for the purposes of calendrical calculations.It was named by Edward Reingold and Nachum Dershowitz for their book Calendrical Calculations....
0001-01-01, Monday (as Day 1) floor (JD - 1721425.5) The count of days of the Common Era
Common Era

Common Era, abbreviated as CE, is a designation for the calendar system most commonly used in the Western world, and also internationally, for numbering the year part of the calendar date....
 (Gregorian)
Unix Time
Unix time

Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time of January 1 1970, not counting leap seconds....
1970-01-01, Thursday (JD – 2440587.5) × 86400 Counts by the second, not the day


  • The Modified Julian Day is found by rounding downward. The MJD was introduced by the Smithsonian Astrophysical Observatory in 1957 to record the orbit of Sputnik
    Sputnik 1

    Sputnik 1 was the world's first Earth-orbiting artificial satellite. It was launched into a low altitude elliptical orbit by the Soviet Union on October 4, 1957, and was the first in a series of satellites collectively known as the Sputnik program....
     via an IBM 704 (36-bit machine) and using only 18 bits until August 7, 2576. MJD is the epoch of OpenVMS
    OpenVMS

    OpenVMS , previously known as VAX-11/VMS, VAX/VMS or VMS, is the name of a high-end computer server operating system that runs on the VAX and DEC Alpha families of computers, developed by Digital Equipment Corporation of Maynard, Massachusetts, Massachusetts , and most recently on Hewlett-Packard systems built around the In...
    , using 63-bit date/time postponing the next Y2K campaign
    Year 2000 problem

    The Year 2000 problem was a notable computer bug resulting from the practice in early computer program design of representing the year with two digits....
     to July 31, 31086 02:48:05.47.


  • The Dublin Julian Day (DJD) is the number of days that has elapsed since the epoch of the solar and lunar ephemerides used from 1900 through 1983, Newcomb's Tables of the Sun
    Newcomb's Tables of the Sun

    Newcomb's Tables of the Sun is the short title for a work by the United States astronomer and mathematician Simon Newcomb entitled "Tables of the Motion of the Earth on its Axis and Around the Sun" on pages 1-169 of "Tables of the Four Inner Planets" , volume VI of the serial publication Astronomical Papers prepared for the use of the A...
     and Ernest W. Brown's Tables of the Motion of the Moon (1919). This epoch was noon UT on :January 0, 1900, which is the same as noon UT on December 31, 1899. The DJD was defined by the International Astronomical Union
    International Astronomical Union

    The International Astronomical Union is a collection of professional astronomers, at the Ph.D. level and beyond, active in professional research and education in astronomy....
     at their 1955 meeting in Dublin
    Dublin

    Dublin is both the largest city and capital of Republic of Ireland. It is located near the midpoint of Ireland's east coast, at the mouth of the River Liffey and at the centre of the Dublin Region....
    , Ireland
    Republic of Ireland

    Ireland is an Island country in north-western Europe. The modern Sovereignty state occupies about five-sixths of the island of Ireland, which was partitioned by the British on 3 May 1921....
    .


  • The Lilian day number is a count of days of the Gregorian calendar
    Gregorian calendar

    The Gregorian calendar is the internationally accepted civil calendar. It was first proposed by the Calabrian doctor Aloysius Lilius, and decreed by Pope Gregory XIII, after whom it was named, on 24 February 1582 by the papal bull Inter gravissimas....
     and not defined relative to the Julian Date. It is an integer applied to a whole day; day 1 was October 15, 1582, which was the day the Gregorian calendar went into effect. The original paper defining it makes no mention of the time zone, and no mention of time-of-day. It was named for Aloysius Lilius
    Aloysius Lilius

    Aloysius Lilius , also Luigi Lilio or Luigi Gigliowas an Italy Physician, astronomer, philosopher and chronology who devised the Gregorian Calendar....
    , the principal author of the Gregorian calendar.


  • The ANSI
    American National Standards Institute

    The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
     Date
    defines January 1, 1601 as day 1, and is used as the origin of COBOL
    COBOL

    COBOL is one of the oldest programming languages still in active use. Its name is an acronym for COmmon Business-Oriented Language, defining its primary domain in business, finance, and administrative systems for companies and governments....
     integer dates. This epoch
    Epoch (reference date)

    In the fields of chronology and periodization, an epoch means an instant in time chosen as the origin of a particular era. The "epoch" then serves as a reference point from which time is measured....
     is the beginning of the previous 400-year cycle of leap years in the Gregorian calendar, which ended with the year 2000.


  • Rata Die
    Rata Die

    Rata Die is a system for assigning numbers to calendar days , independent of any calendar, for the purposes of calendrical calculations.It was named by Edward Reingold and Nachum Dershowitz for their book Calendrical Calculations....
     is a system (or more precisely a family of three systems) used in the book Calendrical Calculations. It uses the local timezone, and day 1 is January 1, 1, that is, the first day of the Christian or Common Era
    Common Era

    Common Era, abbreviated as CE, is a designation for the calendar system most commonly used in the Western world, and also internationally, for numbering the year part of the calendar date....
     in the proleptic Gregorian calendar
    Proleptic Gregorian calendar

    The proleptic Gregorian calendar is produced by extending the Gregorian calendar backward to dates preceding its official introduction in 1582....
    .


The Heliocentric Julian Day
Heliocentric Julian Day

Heliocentric Julian Date is the same as the Julian Date , but adjusted to the frame of reference of the Sun, and thus can differ from the Julian Date by as much as 8.4 minutes , that being the time it takes the Sun's light to reach Earth....
 (HJD) is the same as the Julian day, but adjusted to the frame of reference of the Sun
Sun

The Sun , a G V star, is the star at the center of the Solar System. The Earth and other matter orbit the Sun, which by itself accounts for about 98.6% of the Solar System's mass....
, and thus can differ from the Julian day by as much as 8.3 minutes, that being the time it takes the Sun's light to reach Earth
Earth

Earth is the third planet from the Sun. Earth is the largest of the terrestrial planets in the Solar System in diameter, mass and density. It is also referred to as the World and Wiktionary:Terra.Note that by International Astronomical Union convention, the term "Terra" is used for naming extensive land masses, rather...
. The Julian day is sometimes referred to as the Geocentric Julian Day (GJD) in order to distinguish it from HJD.

History


The Julian day number is based on the Julian Period proposed by Joseph Scaliger
Joseph Justus Scaliger

Joseph Justus Scaliger was a France religious leader and scholar, known for expanding the notion of classical history from Ancient Greece and Ancient Rome history to include Persian Empire, Babylonia , Jewish history and History of ancient Egypt....
 in 1583, at the time of the Gregorian calendar
Gregorian calendar

The Gregorian calendar is the internationally accepted civil calendar. It was first proposed by the Calabrian doctor Aloysius Lilius, and decreed by Pope Gregory XIII, after whom it was named, on 24 February 1582 by the papal bull Inter gravissimas....
 reform, but it is the multiple of three calendar
Calendar

A calendar is a system of organize days for a social, religious, commercial or administrative purpose. This organization is done by giving names to periods of time ? typically days, weeks, months and years....
 cycles used with the Julian calendar
Julian calendar

The Julian calendar, a reform of the Roman calendar, was introduced by Julius Caesar in 46 BC, and came into force in 45 BC . It was chosen after consultation with the astronomer Sosigenes of Alexandria and was probably designed to approximate the tropical year, known at least since Hipparchus....
:

15 (indiction cycle
Indiction

An indiction is any of the years in a 15-year cycle used to date medieval documents throughout Europe, both East and West. Each year was numbered: first indiction, second indiction, etc....
) × 19 (Metonic cycle
Metonic cycle

The Metonic cycle or Enneadecaeteris in astronomy and calendar studies is a particular approximate Least common multiple of the tropical year and the Month#Synodic month....
) × 28 (Solar cycle
Solar cycle (calendar)

The solar cycle is a 28-year cycle of the Julian calendar with respect to the week. It occurs because leap years occur every 4 years and there are 7 possible days to start a leap year, making a 28 year sequence....
) = 7980 years


Its epoch
Epoch (reference date)

In the fields of chronology and periodization, an epoch means an instant in time chosen as the origin of a particular era. The "epoch" then serves as a reference point from which time is measured....
 falls at the last time when all three cycles were in their first year together — Scaliger chose this because it pre-dated all historical dates.

Note: although many references say that the Julian in "Julian day" refers to Scaliger's father, Julius Scaliger
Julius Caesar Scaliger

Julius Caesar Scaliger or Giulio Cesare della Scala , was an Italian scholar and physician spending a major part of his career in France....
, in the introduction to Book V of his Opus de Emendatione Temporum ("Work on the Emendation of Time") he states, "Iulianum vocavimus: quia ad annum Iulianum dumtaxat accomodata est", which translates more or less as "We have called it Julian merely because it is accommodated to the Julian year." This Julian refers to Julius Caesar
Julius Caesar

'Gaius Julius Caesar' , July 13, 100 BC ? March 15, 44 BC,) was a Roman Republic military and political leader. He played a critical role in the transformation of the Roman Republic into the Roman Empire....
, who introduced the Julian calendar in 46 BC.

In his book Outlines of Astronomy, first published in 1849, the astronomer John Herschel
John Herschel

Sir John Frederick William Herschel, 1st Baronet Royal Guelphic Order, Fellow of the Royal Society was an England mathematician, astronomer, chemist, and experimental photographer/inventor, who in some years also did valuable botanical work....
 wrote:
The first year of the current Julian period, or that of which the number in each of the three subordinate cycles is 1, was the year 4713 B.C., and the noon of the 1st of January of that year, for the meridian of Alexandria, is the chronological epoch, to which all historical eras are most readily and intelligibly referred, by computing the number of integer days intervening between that epoch and the noon (for Alexandria) of the day, which is reckoned to be the first of the particular era in question. The meridian of Alexandria is chosen as that to which Ptolemy refers the commencement of the era of Nabonassar, the basis of all his calculations.


Astronomer
Astronomer

An astronomer is a scientist who studies Celestial body such as planets, stars, and Galaxy.Historically, astronomy was more concerned with the classification and description of phenomena in the sky, while astrophysics attempted to explain these phenomena and the differences between them using physical laws....
s adopted Herschel's Julian Days in the late nineteenth century, but used the meridian of Greenwich instead of Alexandria, after the former was adopted as the Prime Meridian
Prime Meridian

The Prime Meridian is the meridian at which longitude is defined to be 0?.The Prime Meridian and the opposite 180th meridian , which the International Date Line generally follows, form a great circle that divides the Earth into the Eastern Hemisphere and Western Hemispheres....
 after the International Meridian Conference
International Meridian Conference

The International Meridian Conference was a meeting held in October 1884 in Washington, D.C. in the United States to determine the Prime Meridian of the world....
 in Washington in 1884. This has now become the standard system of Julian days. Julian days are typically used by astronomers to date astronomical
Astronomy

Astronomy is the science of Astronomical object and Phenomenon that originate outside the Earth's atmosphere . It is concerned with the evolution, physics, chemistry, meteorology, and motion of celestial objects, as well as the physical cosmology....
 observations, thus eliminating the complications resulting from using standard calendar
Calendar

A calendar is a system of organize days for a social, religious, commercial or administrative purpose. This organization is done by giving names to periods of time ? typically days, weeks, months and years....
 periods like eras, years, or months. They were first introduced into variable star
Variable star

A star is classified as variable if its apparent magnitude as seen from Earth changes over time, whether the changes are due to variations in the star's actual luminosity, or to variations in the amount of the star's light that is blocked from reaching Earth....
 work by Edward Charles Pickering
Edward Charles Pickering

Edward Charles Pickering was an United States astronomer and physicist, brother of William Henry Pickering.Along with Hermann Carl Vogel, Pickering discovered the first spectroscopic binary stars....
, of the Harvard College Observatory
Harvard College Observatory

The Harvard College Observatory is an institution managing a complex of buildings and multiple instruments used for astronomy research by the Harvard University Department of Astronomy....
, in 1890.

Julian days begin at noon because when Herschel recommended them, the astronomical day began at noon (it did so until 1925). The astronomical day had begun at noon ever since Ptolemy
Ptolemy

Claudius Ptolemaeus , known in English as Ptolemy , was a Roman Greek mathematics, Greek astronomy, geographer and astrologer. He lived in History of Roman Egypt, and was probably born there in a town in the Thebaid called Ptolemais Hermiou; he died in Alexandria around 168 AD....
 chose to begin the days in his astronomical periods at noon. He chose noon because the transit of the Sun across the observer's meridian occurs at the same apparent time every day of the year, unlike sunrise or sunset, which vary by several hours. Midnight was not even considered because it could not be accurately determined using water clock
Water clock

A water clock or clepsydra is any timekeeper operated by means of a regulated flow of liquid into or out from a vessel where the amount is then measured....
s. Nevertheless, he double-dated most nighttime observations with both Egyptian
Ancient Egypt

Ancient Egypt was an Ancient history civilization in eastern North Africa, concentrated along the lower reaches of the Nile in what is now the modern nation of Egypt....
 days beginning at sunrise and Babylonian days beginning at sunset. This would seem to imply that his choice of noon was not, as is sometimes stated, made in order to allow all observations from a given night to be recorded with the same date.

Calculation


The Julian day number can be calculated using the following formulas:

The months January to December are 1 to 12. Astronomical year numbering
Astronomical year numbering

Astronomical year numbering is based on AD /CE year numbering, but follows normal decimal integer numbering more strictly. Thus, it has a year zero, the years before that are designated with negative numbers and the years after that are designated with positive numbers....
 is used, thus 1 BC is 0, 2 BC is -1, and 4713 BC is -4712. In all divisions (except for JD) the floor function
Floor function

In mathematics and computer science, the floor and ceiling function s map a real number to the next smallest or next largest integer. More precisely, floor is the largest integer not greater than x and ceiling is the smallest integer not less than x....
 is applied to the quotient (for dates since March 1, -4800 all quotients are non-negative, so we can also apply truncation
Truncation

In mathematics, truncation is the term for limiting the number of numerical digits right of the decimal point, by discarding the least significant ones....
).


For a date in the Gregorian calendar (at noon):

For a date in the Julian calendar (at noon):

The constants used at the end of the Gregorian and Julian formulas are required to return the same JDN for the same date in both calendars between March 1, 200 and February 28, 300. The constants are the JDNs of February 29, -4800 in each calendar. In the proleptic Gregorian calendar
Proleptic Gregorian calendar

The proleptic Gregorian calendar is produced by extending the Gregorian calendar backward to dates preceding its official introduction in 1582....
 the Julian day zero is November 24, 4714 BC which is 32045 days apart from the start of the Gregorian quadricentennial cycle (i.e. 400-year cycle starting and ending in a year divisible by 400) containing the Julian day zero, which begins on March 1, 4801 BC in the proleptic Gregorian calendar
Proleptic Gregorian calendar

The proleptic Gregorian calendar is produced by extending the Gregorian calendar backward to dates preceding its official introduction in 1582....
.

For the full Julian date, not counting leap second
Leap second

A leap second is a plus or minus one-second adjustment to the Coordinated Universal Time time scale that keeps it close to Solar time. UTC, which is used as the basis for official time-of-day radio broadcasts for civil time, is maintained using extremely precise atomic clocks....
s (divisions are real numbers):

So, for example, January 1, 2000 at midday corresponds to JD = 2451545.0

The day of the week
Week

A week is a grouping of days or a division of a larger grouping such as a lunar month, year, etc. The week allows for shorter routine than a month and benefits groups of people with organising market days, worship, taxes, etc....
 can be determined from the Julian day number by calculating it modulo
Modular arithmetic

In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after they reach a certain value — the modulus....
 7, where 0 means Monday.

JDN mod 7 0 1 2 3 4 5 6
Day of the weekMonTueWedThuFriSatSun


Gregorian calendar from Julian day number

  • Let J be the Julian day number from which we want to compute the date components.
  • With J, compute a relative Julian day number j from a Gregorian epoch starting on March 1, -4800 (i.e. March 1, 4801 BC in the proleptic Gregorian Calendar), the beginning of the Gregorian quadricentennial 32,044 days before the epoch of the Julian Period.
  • With j, compute the number g of Gregorian quadricentennial cycles elapsed (there are exactly 146,097 days per cycle) since the epoch; subtract the days for this number of cycles, it leaves dg days since the beginning of the current cycle.
  • With dg, compute the number c (from 0 to 4) of Gregorian centennial cycles (there are exactly 36,524 days per Gregorian centennial cycle) elapsed since the beginning of the current Gregorian quadricentennial cycle, number reduced to a maximum of 3 (this reduction occurs for the last day of a leap centennial year where c would be 4 if it were not reduced); subtract the number of days for this number of Gregorian centennial cycles, it leaves dc days since the beginning of a Gregorian century.
  • With dc, compute the number b (from 0 to 24) of Julian quadrennial cycles (there are exactly 1,461 days in 4 years, except for the last cycle which may be incomplete by 1 day) since the beginning of the Gregorian century; subtract the number of days for this number of Julian cycles, it leaves db days in the Gregorian century.
  • With db, compute the number a (from 0 to 4) of Roman annual cycles (there are exactly 365 days per Roman annual cycle) since the beginning of the Julian quadrennial cycle, number reduced to a maximum of 3 (this reduction occurs for the leap day, if any, where a would be 4 if it were not reduced); subtract the number of days for this number of annual cycles, it leaves da days in the Julian year (that begins on March 1).
  • Convert the four components g, c, b, a into the number y of years since the epoch, by summing their values weighted by the number of years that each component represents (respectively 400 years, 100 years, 4 years, and 1 year).
  • With da, compute the number m (from 0 to 11) of months since March (there are exactly 153 days per 5-month cycle; however, these 5-month cycles are offset by 2 months within the year, i.e. the cycles start in May, and so the year starts with an initial fixed number of days on March 1, the month can be computed from this cycle by a Euclidian division by 5); subtract the number of days for this number of months (using the formula above), it leaves d days past since the beginning of the month.
  • The Gregorian date (Y, M, D) can then be deduced by simple shifts from (y, m, d).


The calculations below (which use integer division [div] and modulo [mod] with positive numbers only) are valid for the whole range of dates since -4800. For dates before 1582, the resulting date components are valid only in the Gregorian proleptic calendar. This is based on the Gregorian calendar but extended to cover dates before its introduction, including the pre-Christian era. For dates in that era (before year 1 AD), astronomical year numbering
Astronomical year numbering

Astronomical year numbering is based on AD /CE year numbering, but follows normal decimal integer numbering more strictly. Thus, it has a year zero, the years before that are designated with negative numbers and the years after that are designated with positive numbers....
 is used. This includes a year zero, which immediately precedes 1 AD. Astronomical year zero is 1 BC in the proleptic Gregorian calendar and, in general, year n BC = astronomical year 1 - n. For astronomical year A (A < 1), the BC year is 1 + abs(A).

J = Julian day number
j = J + 32044
g = j div 146097
dg = j mod 146097
c = (dg div 36524 + 1) × 3 div 4
dc = dg - c × 36524
b = dc div 1461
db = dc mod 1461
a = (db div 365 + 1) × 3 div 4
da = db - a × 365
y = g × 400 + c × 100 + b × 4 + a
m = (da × 5 + 308) div 153 - 2
d = da - (m + 4) × 153 div 5 + 122
Y = y - 4800 + (m + 2) div 12
M = (m + 2) mod 12 + 1
D = d + 1.5


Please be careful implementing this algorithm in C/C++,using one from http://www.astro.uu.nl/~strous/AA/en/reken/juliaansedag.html results in more straight-forward code.

Gregorian calendar from UnixTime


Let 'U' be the UnixTime you want to convert, just follow these easy steps:

ss = U mod 60
a = (U - ss) div 60
mm = a mod 60
b = (a - mm) div 60
hh = b mod 24
u = U - ss - mm * 60 - hh * 3600


where ss are seconds, mm minutes, hh hours. Day, month and year can be calculated as in the section Gregorian calendar from Julian day number
Julian day

The Julian date is the interval of time in days and fractions of a day, since January 1, 4713 BC Greenwich noon, Julian proleptic calendar. In precise work, the timescale, e.g., Terrestrial Time or Universal Time , should be specified....
, applying calculations to:

J = u div 86400 + 2440588


and D being:

D = d + 1


See also

  • Julian year (astronomy)
    Julian year (astronomy)

    In astronomy, a Julian year is a Units of measurement of time defined as exactly 365.25 days of 86,400 International System of Units seconds each, totalling 31,557,600 seconds....
  • Julian year (calendar)
  • Decimal time
    Decimal time

    Decimal time is the representation of the time of day using units which are decimally related. This term is often used to refer specifically to #France, which divides the day into 10 decimal hours, each decimal hour into 100 decimal minutes and each decimal minute into 100 decimal seconds, as opposed to the more familiar standard time, whic...
  • Epoch (reference date)
    Epoch (reference date)

    In the fields of chronology and periodization, an epoch means an instant in time chosen as the origin of a particular era. The "epoch" then serves as a reference point from which time is measured....
  • Epoch (astronomy)
    Epoch (astronomy)

    In astronomy, an epoch is a moment in time used as a reference for the orbital elements of a celestial body. Typically, the epoch is either the moment an observation was made or the moment for which a prediction was calculated....
  • Era
    Era

    An era is a commonly used word for long period of time. When used in science, for example geology, eras denote clearly defined periods of time of arbitrary but well defined length, such as for example the Mesozoic era from 252 Ma?66 Ma, delimited by a start event and an end event....
  • Time
    Time

    Time is a component of the measurement used to sequence events, to compare the durations of events and the intervals between them, and to quantify the motions of objects....
  • Time scales
  • Ordinal date
    Ordinal date

    An ordinal date is a calendar date consisting of a year and a day of year ranging between 1 and 366 . The two numbers can be formatted as YYYY-DDD to comply with the ISO 8601#Ordinal dates format....
  • Dual dating
    Dual dating

    In historical materials, dates will often be indicated with what appears to be duplicate, or excessive digits, sometimes separated by a hyphen or a slash....
  • 5th millennium BC


Footnotes



External links

  • (18 bits for dates)
  • valid from 1 January 100
    100

    Year 100 was a leap year starting on Wednesday of the Julian calendar....
     proleptic Gregorian calendar