The 5-Oct-1582 does not exist in the Gregorian calendar. The Pope
decided that 4-Oct-1582 was followed by 15-Oct-1582. See below from

Gregorian calendar


The Gregorian calendar is a modified version of the Julian calendar. The
only difference being the specification of leap years. The Julian
calendar specifies that every year that is a multiple of 4 will be a leap
year. This leads to a year that is 365.25 days long, but the current
accepted value for the tropical year is 365.242199 days.

To correct this error in the length of the year and to bring the vernal
equinox back to March 21, Pope Gregory XIII issued a papal bull
declaring that Thursday October 4, 1582 would be followed by Friday October
15, 1582 and that centennial years would only be a
leap year if they were a multiple of 400. This shortened the year by 3 days
per 400 years, giving a year of 365.2425 days.

Another recently proposed change in the leap year rule is to make years
that are multiples of 4000 not a leap year, but this has never
been officially accepted and this rule is not implemented in these algorithms.
At 07:35 AM 10/17/2000 -0800, you wrote:
Here we are using following SQL:

select to_date('5-OCT-1582','DD-MON-YYYY') from dual;

which is returning 15-OCT-1582, instead of 05-OCT-1582

Any Clue ?


Please see the official ORACLE-L FAQ: http://www.orafaq.com
Author: Sanjeev Sachdeva
INET: sanjeevs_at_delhi.tcs.co.in

Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Peter Johnson, DBA
Humboldt State University

Search Discussions

Discussion Posts


Follow ups

Related Discussions



site design / logo © 2022 Grokbase