Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Mabye OT: Was Re: Different clocks for different instances.
Well I
say,
<SPAN
class=484380617-19122001>
that
is also the case on Tru64 as well.
<SPAN
class=484380617-19122001>
How
pedantic is UNIX ??
<SPAN
class=484380617-19122001>
<FONT face=Tahoma
size=2>-----Original Message-----From: Brian McGraw
[mailto:Brian.McGraw_at_infinity-insurance.com]Sent: 19 December 2001
16:16To: Multiple recipients of list ORACLE-LSubject:
Mabye OT: Was Re: Different clocks for different
instances.Speaking of the system clock, here's something
interesting that I stumbled across a few years back...
Background: For those of you who may not know, the Julian calendar
was abandoned by England, in favor of the Gregorian calendar, in 1752 because
of date discrepancies. To facilitate this, September 3 - 13 were
eliminated. This is actually reflected in UNIX (well, Solaris anyway) by
issuing the 'cal 1752' command and looking at the month of September:
Jul Aug
S S M Tu W Th F S S M Tu W Th F S 1 2 3 4 1 1 2 14 15
11 2 3 4 5 6 7 8 17 18 19 20 21 22 23 12 13 14 15 16 17 18 9 10 11 12 13 14 15 24 25 26 27 28 29 3019 20 21 22 23 24 25 16 17 18 19 20 21 22 26 27 28 29 30 31 23 24 25 26 27 28 29 More info. on why the switch over occurred is available at <A href="http://www.bicknell.net/books/pc1981/p_calender.htm">http://www.bicknell.net/books/pc1981/p_calender.htm, for those of you with morbid curiosity. Anyway - I was doing some Y2K testing a few years back, and playing with NLS_DATE_FORMAT queries when I learned this little tidbit. I decided to test the Oracle date formats because - hey - they'll be okay because they're based on Unix, right?
Wrong: Issue the following query: select sysdate
ADD_MONTHS(SYSDATE,- ADD_MONTHS(SYSDATE,- -------------------- -------------------- -------------------- 19-DEC-2001 10:07:0219-DEC-1752 10:07:02 09-DEC-1752 10:07:02 The third column represents a date which, technically, does not exist. : )
The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Received on Wed Dec 19 2001 - 11:35:09 CST
![]() |
![]() |