Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Boolean dates...

Re: Boolean dates...

From: Tim Gorman <tim_at_sagelogix.com>
Date: Wed, 22 Oct 2003 07:54:43 -0800
Message-ID: <F001.005D3F95.20031022075443@fatcity.com>


Jose Luis,

Is it possible that your boss actually means "Julian date", not "boolean date"? If you speak the two phrase out loud, there are enough similarities to allow mispronunciation or misinterpretation?

I tried one of your date values and it didn't work out so well, but if the format is _similar_ to the Julian format employed by Oracle, you might have a better time searching Google for "julian date" rather than "boolean date". Just thinking out loud...

Here is what I got using one of the values you displayed:

    SQL> select to_date(728283,'J') from dual;

    TO_DATE(728



    06-DEC-2719 And here is the Julian date value for today...

    SQL> select to_char(sysdate,'J') from dual;

    TO_CHAR



    2452935

Hope this helps...

-Tim

> Hi to all!
>
> We have an old app that manages something that my boss
> calls: boolean dates.
>
> He told me that exists an algorithm that manages dates
> as a boolean format.
>
> We have several tables in this form:
>
> Note: The following table: PAAM
> has the field BDATE defined as NUMBER.
>
> sql> select bdate from paam
> sql> where rownum < 6
>
> BDATE
> ----------
> 728464
> 728434
> 728403
> 728495
> 728283
>
> now, I need to convert that format to an
> 'understandable' format to get the old data and old
> dates.
>
> I'm looking (google-ing) for that subject but, without
> luck.
>
> any ideas? help?, pls...
>
> Thanks in advance
>
> Regards!
> JL
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.net --
> Author: Jose Luis Delgado
> INET: joseluis_delgado_at_yahoo.com
>
> 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tim Gorman
  INET: tim_at_sagelogix.com

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 - 10:54:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US