SlideShare a Scribd company logo
1 of 2
Download to read offline
My thanks to Claus Tøndering for permission to quote the following from his excellent paper,
    “Frequently Asked Questions about Calendars, v2.3”. The full document is available at
          http://www.tondering.dk/claus/calendar.html. Thoroughly recommended.


Ever wondered why the Oracle date format has such a weird starting point, 4713 BC? And ever
wondered whether it faces a ‘ running out of dates’ issue, such as we (nearly) experienced with the
Y2K problem? Read on, and all will become clear. Oracle actually uses the “Julian Period”, but to
understand what that is, you need to know three other pieces of information… .




What is the Solar Cycle?

In the Julian calendar, the relationship between the days of the week and the dates of the
year is repeated in cycles of 28 years. In the Gregorian calendar, this is still true for periods
that do not cross years that are divisible by 100 but not by 400.

A period of 28 years is called a Solar Cycle. The Solar Number of a year (ie, which Solar Cycle
it’s in) is found as:

Solar Number = (year + 8) mod 28 + 1

In the Julian calendar, there is a one-to-one relationship between the Solar Number and the
day on which a particular date falls.


What is the Golden Number?

Each year is associated with a Golden Number.

Every 19 years, the phases of the moon fall on the same dates (if it were not for the skewness
introduced by leap years). It is therefore natural to associate a number between 1 and 19
with each year. This number is the so-called Golden Number. It is calculated thus:

Golden Number = (year mod 19) + 1

In years which have the same Golden Number, the new moon will fall on (or very nearly on)
the same date.


What is the Indiction?

The Indiction was used in the middle ages to specify the position of a year in a 15 year
taxation cycle. It was introduced by emperor Constantine the Great on 1 September 312 and
ceased to be used in 1806.

The Indiction may be calculated thus:

Indiction = (year+2) mod 15 + 1

The Indiction has no astronomical significance.
The Indiction did not always follow the calendar year. Three different Indictions may be
identified:
    1. The Pontifical or Roman Indiction, which started on New Year’s Day (being either 25
         December, 1 January or 25 March).
    2. The Greek or Constantinopolitan Indiction, which started on 1 September.
    3. The Imperial Indiction, or Indiction of Constantine, which started on 24 September.
What is the Julian Period

The Julian Period (and the Julian day number) must not be confused with the Julian calendar
(i.e., the calendar introduced in 45 BC by Julius Caesar).

The French scholar Joseph Justus Scaliger (1540-1609) was interested in assigning a positive
number to ever year without having to worry about BC and AD. He invented what is today
known as the Julian Period.

The Julian Period probably takes its name from the Julian Calendar, although it has been
claimed that it is named after Scaliger’s father, the Italian scholar Julius Caesar Scaliger
(1484-1558).

Scaliger’s Julian Period starts on 1 January 4713 BC and lasts for 7980 years. AD 2000 is thus
year 6713 in the Julian Period. After 7980 years, the number starts from 1 again.

Why 4713 BC, and why 7980 years? Well, in 4713 BC the Indiction, the Golden Number and
the Solar Number were all 1. The next time this happens is 15 x 19 x 28 = 7980 years later, in
AD 3268 [at which point Oracle databases with date fields will cease to function properly!!]

Astronomers [and RDBMS developers] have used the Julian period to assign a unique number to
every day since 1 January 4713 BC. This is the so-called Julian Day. JD 0 designates the 24
hours from noon UTC on 1 January 4713 BC to noon UTC on 2 January 4713 BC.

This means that at noon UTC on 1 January AD 2000, JD 2,451,545 started.

This can be calculated thus:

From 4713 BC to AD 2000 there are 6712 years.
In the Julian calendar, years have 365.25 days, so 6712 years corresponds to 6712 x 365.25 =
2,451,558 days. Subtract from this the 13 days that the Gregorian calendar is ahead of the
Julian calendar, and you get 2,451,545.

Often fractions of Julian day numbers are used, so that 1 January AD 2000 at 15:00 UTC is
referred to as JD 2,451,545.125.

Note that some people use the term “Julian day number” to refer to any numbering of days.
NASA, for example, uses the term to denote the number of days since 1 January of the
current year.

More Related Content

Similar to Oracle date format explained by Julian Period

A case study on Gregorian Calendar
A case study on Gregorian CalendarA case study on Gregorian Calendar
A case study on Gregorian CalendarRamkiran Lepakshi
 
Observational Hebrew Year of Moses
Observational Hebrew Year of MosesObservational Hebrew Year of Moses
Observational Hebrew Year of MosesOtis Armstrong
 
Mayas Surviving the Colonial Genocide
Mayas Surviving the Colonial GenocideMayas Surviving the Colonial Genocide
Mayas Surviving the Colonial GenocideEditions La Dondaine
 
The History of Time Keeping
The History of Time KeepingThe History of Time Keeping
The History of Time KeepingMariam Amin
 
The Hebrew Calendar: It's About Time
The Hebrew Calendar: It's About TimeThe Hebrew Calendar: It's About Time
The Hebrew Calendar: It's About TimeDallas Kennedy
 
This a PPT about The Calanders and more info about it
This a PPT about The Calanders and more info about itThis a PPT about The Calanders and more info about it
This a PPT about The Calanders and more info about itPrincePayeng
 
Life of Christ (202) Introductory issues 2
Life of Christ (202) Introductory issues 2Life of Christ (202) Introductory issues 2
Life of Christ (202) Introductory issues 2Richard Chamberlain
 
Agg.eclipse.sequence.st.john
Agg.eclipse.sequence.st.johnAgg.eclipse.sequence.st.john
Agg.eclipse.sequence.st.johnOtis Armstrong
 
Mayan calendar explained
Mayan calendar explainedMayan calendar explained
Mayan calendar explainedDokka Srinivasu
 
Galaxy Forum Southeast Asia 2013 - Dr. KK Cheong
Galaxy Forum Southeast Asia 2013 - Dr. KK CheongGalaxy Forum Southeast Asia 2013 - Dr. KK Cheong
Galaxy Forum Southeast Asia 2013 - Dr. KK CheongILOAHawaii
 
Time & Calendars Study Guide 2010
Time & Calendars Study Guide 2010Time & Calendars Study Guide 2010
Time & Calendars Study Guide 2010BHSEarthScience
 
Astronomical basis of Indian festivals
Astronomical basis of Indian festivalsAstronomical basis of Indian festivals
Astronomical basis of Indian festivalsRajesh Kochhar
 
Do You Know These Interesting Facts About Calendars?
Do You Know These Interesting Facts About Calendars?Do You Know These Interesting Facts About Calendars?
Do You Know These Interesting Facts About Calendars?Jayden Samuelson
 

Similar to Oracle date format explained by Julian Period (20)

Calendars in the Sky
Calendars in the SkyCalendars in the Sky
Calendars in the Sky
 
A case study on Gregorian Calendar
A case study on Gregorian CalendarA case study on Gregorian Calendar
A case study on Gregorian Calendar
 
How year is measured
How year is measuredHow year is measured
How year is measured
 
Month
MonthMonth
Month
 
Observational Hebrew Year of Moses
Observational Hebrew Year of MosesObservational Hebrew Year of Moses
Observational Hebrew Year of Moses
 
The Moedim of Yeshua
The Moedim of YeshuaThe Moedim of Yeshua
The Moedim of Yeshua
 
Mayas Surviving the Colonial Genocide
Mayas Surviving the Colonial GenocideMayas Surviving the Colonial Genocide
Mayas Surviving the Colonial Genocide
 
The Mayan Calendar
The Mayan CalendarThe Mayan Calendar
The Mayan Calendar
 
The History of Time Keeping
The History of Time KeepingThe History of Time Keeping
The History of Time Keeping
 
The Hebrew Calendar: It's About Time
The Hebrew Calendar: It's About TimeThe Hebrew Calendar: It's About Time
The Hebrew Calendar: It's About Time
 
This a PPT about The Calanders and more info about it
This a PPT about The Calanders and more info about itThis a PPT about The Calanders and more info about it
This a PPT about The Calanders and more info about it
 
Life of Christ (202) Introductory issues 2
Life of Christ (202) Introductory issues 2Life of Christ (202) Introductory issues 2
Life of Christ (202) Introductory issues 2
 
Agg.eclipse.sequence.st.john
Agg.eclipse.sequence.st.johnAgg.eclipse.sequence.st.john
Agg.eclipse.sequence.st.john
 
Mayan calendar explained
Mayan calendar explainedMayan calendar explained
Mayan calendar explained
 
27. calender
27. calender27. calender
27. calender
 
Galaxy Forum Southeast Asia 2013 - Dr. KK Cheong
Galaxy Forum Southeast Asia 2013 - Dr. KK CheongGalaxy Forum Southeast Asia 2013 - Dr. KK Cheong
Galaxy Forum Southeast Asia 2013 - Dr. KK Cheong
 
Time & Calendars Study Guide 2010
Time & Calendars Study Guide 2010Time & Calendars Study Guide 2010
Time & Calendars Study Guide 2010
 
2012
20122012
2012
 
Astronomical basis of Indian festivals
Astronomical basis of Indian festivalsAstronomical basis of Indian festivals
Astronomical basis of Indian festivals
 
Do You Know These Interesting Facts About Calendars?
Do You Know These Interesting Facts About Calendars?Do You Know These Interesting Facts About Calendars?
Do You Know These Interesting Facts About Calendars?
 

More from oracle documents (20)

Varraysandnestedtables
VarraysandnestedtablesVarraysandnestedtables
Varraysandnestedtables
 
Usertracing
UsertracingUsertracing
Usertracing
 
Userpasswrd
UserpasswrdUserpasswrd
Userpasswrd
 
Userlimit
UserlimitUserlimit
Userlimit
 
Undo internalspresentation
Undo internalspresentationUndo internalspresentation
Undo internalspresentation
 
Undo internals paper
Undo internals paperUndo internals paper
Undo internals paper
 
Tablespacelmt
TablespacelmtTablespacelmt
Tablespacelmt
 
Tablerename
TablerenameTablerename
Tablerename
 
Sql scripting sorcerypresentation
Sql scripting sorcerypresentationSql scripting sorcerypresentation
Sql scripting sorcerypresentation
 
Sql scripting sorcerypaper
Sql scripting sorcerypaperSql scripting sorcerypaper
Sql scripting sorcerypaper
 
Sql for dbaspresentation
Sql for dbaspresentationSql for dbaspresentation
Sql for dbaspresentation
 
Sequencereset
SequenceresetSequencereset
Sequencereset
 
Rollbacksizes
RollbacksizesRollbacksizes
Rollbacksizes
 
Rollbackshrinks
RollbackshrinksRollbackshrinks
Rollbackshrinks
 
Rollbacklmt
RollbacklmtRollbacklmt
Rollbacklmt
 
Rollbackblocking
RollbackblockingRollbackblocking
Rollbackblocking
 
Rollback1555s
Rollback1555sRollback1555s
Rollback1555s
 
Redosize
RedosizeRedosize
Redosize
 
Real liferecoverypresentation
Real liferecoverypresentationReal liferecoverypresentation
Real liferecoverypresentation
 
Real liferecoverypaper
Real liferecoverypaperReal liferecoverypaper
Real liferecoverypaper
 

Oracle date format explained by Julian Period

  • 1. My thanks to Claus Tøndering for permission to quote the following from his excellent paper, “Frequently Asked Questions about Calendars, v2.3”. The full document is available at http://www.tondering.dk/claus/calendar.html. Thoroughly recommended. Ever wondered why the Oracle date format has such a weird starting point, 4713 BC? And ever wondered whether it faces a ‘ running out of dates’ issue, such as we (nearly) experienced with the Y2K problem? Read on, and all will become clear. Oracle actually uses the “Julian Period”, but to understand what that is, you need to know three other pieces of information… . What is the Solar Cycle? In the Julian calendar, the relationship between the days of the week and the dates of the year is repeated in cycles of 28 years. In the Gregorian calendar, this is still true for periods that do not cross years that are divisible by 100 but not by 400. A period of 28 years is called a Solar Cycle. The Solar Number of a year (ie, which Solar Cycle it’s in) is found as: Solar Number = (year + 8) mod 28 + 1 In the Julian calendar, there is a one-to-one relationship between the Solar Number and the day on which a particular date falls. What is the Golden Number? Each year is associated with a Golden Number. Every 19 years, the phases of the moon fall on the same dates (if it were not for the skewness introduced by leap years). It is therefore natural to associate a number between 1 and 19 with each year. This number is the so-called Golden Number. It is calculated thus: Golden Number = (year mod 19) + 1 In years which have the same Golden Number, the new moon will fall on (or very nearly on) the same date. What is the Indiction? The Indiction was used in the middle ages to specify the position of a year in a 15 year taxation cycle. It was introduced by emperor Constantine the Great on 1 September 312 and ceased to be used in 1806. The Indiction may be calculated thus: Indiction = (year+2) mod 15 + 1 The Indiction has no astronomical significance. The Indiction did not always follow the calendar year. Three different Indictions may be identified: 1. The Pontifical or Roman Indiction, which started on New Year’s Day (being either 25 December, 1 January or 25 March). 2. The Greek or Constantinopolitan Indiction, which started on 1 September. 3. The Imperial Indiction, or Indiction of Constantine, which started on 24 September.
  • 2. What is the Julian Period The Julian Period (and the Julian day number) must not be confused with the Julian calendar (i.e., the calendar introduced in 45 BC by Julius Caesar). The French scholar Joseph Justus Scaliger (1540-1609) was interested in assigning a positive number to ever year without having to worry about BC and AD. He invented what is today known as the Julian Period. The Julian Period probably takes its name from the Julian Calendar, although it has been claimed that it is named after Scaliger’s father, the Italian scholar Julius Caesar Scaliger (1484-1558). Scaliger’s Julian Period starts on 1 January 4713 BC and lasts for 7980 years. AD 2000 is thus year 6713 in the Julian Period. After 7980 years, the number starts from 1 again. Why 4713 BC, and why 7980 years? Well, in 4713 BC the Indiction, the Golden Number and the Solar Number were all 1. The next time this happens is 15 x 19 x 28 = 7980 years later, in AD 3268 [at which point Oracle databases with date fields will cease to function properly!!] Astronomers [and RDBMS developers] have used the Julian period to assign a unique number to every day since 1 January 4713 BC. This is the so-called Julian Day. JD 0 designates the 24 hours from noon UTC on 1 January 4713 BC to noon UTC on 2 January 4713 BC. This means that at noon UTC on 1 January AD 2000, JD 2,451,545 started. This can be calculated thus: From 4713 BC to AD 2000 there are 6712 years. In the Julian calendar, years have 365.25 days, so 6712 years corresponds to 6712 x 365.25 = 2,451,558 days. Subtract from this the 13 days that the Gregorian calendar is ahead of the Julian calendar, and you get 2,451,545. Often fractions of Julian day numbers are used, so that 1 January AD 2000 at 15:00 UTC is referred to as JD 2,451,545.125. Note that some people use the term “Julian day number” to refer to any numbering of days. NASA, for example, uses the term to denote the number of days since 1 January of the current year.