localtime(0)

From: Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: localtime(0)
Date: 2014-12-29 16:31:33
Message-ID: CAJP7dtCJ2UnFOAr2X-gmhgeGVOjL-VC39LqwGzE6++0N=R554Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rene Romero Benavides 2014-12-29 16:39:53 Re: localtime(0)
Previous Message Adrian Klaver 2014-12-14 18:53:26 Re: foregin table insert error