Re: Difference in TO_TIMESTAMP results. - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: Difference in TO_TIMESTAMP results.
Date
Msg-id 874lenjjs9.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Difference in TO_TIMESTAMP results.  (Prabhat Sahu <prabhat.sahu@enterprisedb.com>)
List pgsql-hackers
>>>>> "Prabhat" == Prabhat Sahu <prabhat.sahu@enterprisedb.com> writes:

 Prabhat> postgres[114552]=# select to_timestamp('15-07-84 23:30:32','dd-mm-yyyy
 Prabhat> hh24:mi:ss');
 Prabhat>          to_timestamp
 Prabhat> ------------------------------
 Prabhat>  0084-07-15 23:30:32+05:53*:28*
 Prabhat> (1 row)

 Prabhat> My doubt is the *":28"* in timezone part in 2nd result, is it
 Prabhat> expected ?

Yes, it's expected.

The timezone db as a general rule gives the actual local mean solar time
offset (down to seconds) at the reference location (Kolkata in this
case) as the UTC offset for times before the earliest historical data
known to the tzdb maintainers.

-- 
Andrew (irc:RhodiumToad)


pgsql-hackers by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: RE: Changing the setting of wal_sender_timeout per standby
Next
From: Oleksii Kliukin
Date:
Subject: Re: [PATCH] Fix for infinite signal loop in parallel scan