localtime(0)

From: Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: localtime(0)
Date: 2014-12-29 16:32:19
Message-ID: CAJP7dtDgcKPGcZGbUBQ23g=6id_a=gngGY760h9BrhTxD8vksQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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-general by date

  From Date Subject
Next Message Rob Sargent 2014-12-29 16:37:17 Re: localtime(0)
Previous Message Edson Carlos Ericksson Richter 2014-12-29 16:08:58 pg_base_backup limit bandwidth possible?