Re: localtime(0)

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: localtime(0)
Date: 2014-12-29 16:37:17
Message-ID: 54A1833D.1080102@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/29/2014 09:32 AM, Suresh Raja wrote:
> Hi:
>
> I'm using localtime(0) in various part of the function, and updating
> table with the time. I use localtime at places like the start of the
> function and at the end of the function. The function takes about 5
> mins to run,. The issue is that the function always print the same
> time for both start and end. I'm trying to capture the time at
> various point of the function, but it always print the same time. Is
> localtime(0) is not correct.
>
> Thanks,
> -SR
>
>
http://www.postgresql.org/docs/9.3/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-12-29 16:39:33 Re: Rollback on include error in psql
Previous Message Suresh Raja 2014-12-29 16:32:19 localtime(0)