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

Thread: Find Timezone

Hybrid View

  1. #1
    Join Date
    Jan 2003
    Location
    Scotland
    Posts
    1

    Question Find Timezone

    Is there a way to find the timezone in Oracle 9i?

    I need to pass in a date and return 'GMT' or 'BST'

  2. #2
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Refer to NEW_TIME/DBTIMEZONE functions

    from docs:

    Code:
    The following example returns an Atlantic Standard time, 
    given the Pacific Standard time equivalent:
    
    ALTER SESSION SET NLS_DATE_FORMAT = ’DD-MON-YYYY HH24:MI:SS’;
    
    SELECT NEW_TIME(TO_DATE(
    ’11-10-99 01:23:45’, ’MM-DD-YY HH24:MI:SS’),
    ’AST’, ’PST’) "New Date and Time" FROM DUAL;
    
    New Date and Time
    --------------------
    09-NOV-1999 21:23:45
    Last edited by Sameer; 01-23-2003 at 08:26 AM.

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