Different ways to truncate the time portion of a date
A reader, September 17, 2001 - 2:09 pm UTC
So is Julien date used to truncate date component. Or rather, does the Julien date does not contain component.
can you tell me different ways to truncate the time portion of a date. In oracle 9i do we have a separate datatype for time.
Where can I get a document listing 9i new features, sql, plsql, and database
Example
A reader, September 17, 2001 - 5:27 pm UTC
Please give an example when a julian format is an absolute necessity.
Further, which is inexpensive and why
Truncing time using julian dagte
Truncing date suing trunc
September 17, 2001 - 8:17 pm UTC
It is never an absolute necessity. It is a method of storing the date. It is no more or less functional then anything else. It is an option.
trunc(dt) will be more efficient then to_date( to_char( dt, 'j' ), 'j' )
Date other than Jan 1, 4712 BC
VA, February 17, 2005 - 9:01 am UTC
How can I use some "base" date other than Jan 1, 4712 BC when working with Julian dates?
Thanks
February 17, 2005 - 10:09 am UTC
addition and subtraction will work if you want to make up your own julian date.
Say you wanted it to start "one day later".
Add one to our julian date.
Just what I needed
Jodi, April 29, 2005 - 1:53 pm UTC
Just needed to get sysdate in julian format - this was perfect! Thanks.
when Julian <> Julian
Duke Ganote, July 14, 2005 - 7:12 pm UTC
There are two definitions of Julian date. Oracle has implemented the formal, astronomical definition.
An informal usage is the concatenation of the year and the number of days since the beginning of the year; see mention of at
http://tycho.usno.navy.mil/mjd.html which decries the latter usage as "erroneous". However, I note the military's own "UMMIPS" requistion system uses the latter definition, calling this a "Julian" format in much of the documentation:
SQL> select sysdate, to_char(sysdate,'YDDD') "YDDD" from dual;
SYSDATE YDDD
--------- ----
14-JUL-05 5195
Julian <> Julian redux
Duke Ganote, July 14, 2005 - 7:27 pm UTC