Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Boolean dates...
Hi JL,
try googling for JULIAN dates not boolean. A reason to use Julian dates could be to allow arithmetic of dates to be either a simple plus or minus returning the number of days. You still have to convert back and forth to normal dates for display and human readability. You can see an explanation or Julian/ Gregorian dates and oracles use thereof for internal arithmetic in Oracle itself at http://orafaq.net/papers/dates_o .doc.
Also look at the to_char and to_date functions as they can convert from Julian and to Julian. eg:
SQL> select to_char(sysdate,'J') from dual;
TO_CHAR
SQL> select to_date(2452935,'J') from dual;
TO_DATE(2
hth
kind regards
Pete
--
Pete Finnigan
email:pete_at_petefinnigan.com
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Pete Finnigan
INET: oracle_list_at_peterfinnigan.demon.co.uk
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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). Received on Wed Oct 22 2003 - 12:29:26 CDT
![]() |
![]() |