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: Fun with SYSDATE, TRUNC() and rounding......

Re: Fun with SYSDATE, TRUNC() and rounding......

From: GovindanK <gkatteri_at_fastmail.fm>
Date: Tue, 30 May 2006 20:31:47 UT
Message-Id: <1149021107.28579.262656701@webmail.messagingengine.com>

 Mark

Useful posting this is. I wish to point to the following link (though it is not 100% similar, but it tells how to skip a window). Thought others may find it useful.

[1]http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2328991547163#36924160898182

HTH GovindanK

On Tue, 30 May 2006 14:15:07 -0400, "Bobak, Mark" <Mark.Bobak_at_il.proquest.com> said:

  So, this was a fun little exercise…..

  Everyone knows that trunc(sysdate) will return the current date, rounded to midnight, that is, currently, for me, it would return '2006-05-30 00:00:00' (assuming your nls_date_format is set appropriately).

References

  1. http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2328991547163#36924160898182
--
http://www.freelists.org/webpage/oracle-l
Received on Tue May 30 2006 - 15:31:47 CDT

Original text of this message

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