Problem with method convert_ora_to_unx

Problem with method convert_ora_to_unx

 

  


Hi



A small problem ... In my code in a pcc file I am using this method
convert_ora_to_unx() to convert the date from oracle date to unix
(seconds) . The problem I am facing is that this converts and returns
only the date and not the time of the date.



Hence say there are dates



2005-JUN-29,03:28

2005-JUN-29,02:40

2005-JUN-29,11:28



All these dates are converted to the same time in seconds. And when I
convert it back to oracle it shows the date as 2005-JUN-29 12:00 for all
the three dates.

Is there a method that'll convert the oracle to date to unix with the
time.



For check you can execute this SELECT
date_time_pkg.convert_ora_to_unx(date_time_pkg.convert_sysdate_to_gmt)
FROM dual;

This keeps returning the same time whereas the number of seconds should
be increasing as sys clock is still ticking :-)



Regards,

Ishdeep





**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Oracle LazyDBA home page