DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: what time is 10 mins ago

  1. #1
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    sorry for such a simple question but I'm dense when it comes to sysdate math.

    how can i select sysdate from dual to show me the time 10 minutes ago?

    tks

    steve
    I'm stmontgo and I approve of this message

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Code:
    SQL> alter session set nls_date_Format="mm/dd/yyyy hh24:mi:ss";
    
    Session altered.
    
    SQL> select sysdate now, sysdate-10/(24*60) now_minus_10 from dual;
    
    NOW                 NOW_MINUS_10
    ------------------- -------------------
    10/03/2002 10:49:18 10/03/2002 10:39:18
    
    SQL>
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width