Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Unanswered: need to_timestamp(double precision) without timezone....

    Hi all,

    In postgres we have command to_timestamp(double precision). this when i tried its giving timestamp with timezone. how to use to_timestamp(double precision) with out timezone....

    sharath

  2. #2
    Join Date
    Nov 2003
    Posts
    2,933
    Provided Answers: 12
    Just tell postgres to return it in the timezone you want. A timetstamp without time zone is internally stored as UTC (as documented in the manual), so the following should give you what you want:

    Code:
    select to_timestamp(....) at time zone 'UTC'
    I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags: http://www.dbforums.com/misc.php?do=bbcode#code

    Tips for good questions:

    http://tkyte.blogspot.de/2005/06/how...questions.html
    http://wiki.postgresql.org/wiki/SlowQueryQuestions
    http://catb.org/esr/faqs/smart-questions.html

  3. #3
    Join Date
    Mar 2012
    Posts
    3
    ya its working fine now.... tks.....

    sharath

Posting Permissions

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