Re: PG producing odd results on epoch timestamp to string conversion

From: Preston Landers <planders(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PG producing odd results on epoch timestamp to string conversion
Date: 2011-09-10 00:14:24
Message-ID: CAKgs+RV2_CSYJ9o+cMFnEXMiBS6h5Wv0LvveqkyQLL4FxJZtbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 9, 2011 at 5:13 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Yet PostgreSQL
>> shows a value that is exactly 26 minutes behind the others (12:09:40).
>
> You've fat-fingered the to_char usage --- MM is month, not minutes
> (I think you want MI for that).
>

Yep, that's exactly it. Thanks so much for your help, and everything
else you've done for this project over the years!

best regards,
Preston

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2011-09-10 11:08:01 Re: COPY FROM (query) in plpgsql
Previous Message Tom Lane 2011-09-09 22:13:59 Re: PG producing odd results on epoch timestamp to string conversion