Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Date function that leaves only the time?
Norman Dunbar wrote:
> Daniel Morgan <damorgan_at_x.washington.edu> wrote in message
> news:<1070914016.474622_at_yasure>...
>
>
>>This brings up an interesting question. If I perform the following >>query: >> >> SQL> select argument_name, data_type >> 2 from all_arguments >> 3 where object_name = 'TO_TIME'; >>
>>I get something that seems to be undocumented at tahiti.oracle.com. >> >>Does anyone have an example of using this? >> >>Thanks.
I did exactly what you did and got the same result. What is strange is that anything in a package exposed to the outside world is in the package header. So I went to \rdbms\admin and found stdspec.sql which contains the function's header:
function TO_TIME (RIGHT varchar2 character set any_cs) return time_unconstrained;
pragma BUILTIN('TO_TIME', 0, 15, 1); function TO_TIMESTAMP (RIGHT varchar2 character set any_cs) return TIMESTAMP_UNCONSTRAINED; pragma BUILTIN('TO_TIMESTAMP', 0, 15, 3);
And, while visible, doesn't seem to be usable outside the package. So fir the first time I am looking at the datatypes TIME_UNCONSTRAINED and TIMESTAMP_CONSTRAINED and the PRAGMA builtin.
I'm hoping I can learn from someone that has torn this apart and figured out what is going on here.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Wed Dec 17 2003 - 16:58:15 CST