localtime(0) - Mailing list pgsql-general

From Suresh Raja
Subject localtime(0)
Date
Msg-id CAJP7dtDgcKPGcZGbUBQ23g=6id_a=gngGY760h9BrhTxD8vksQ@mail.gmail.com
Whole thread Raw
Responses Re: localtime(0)
Re: localtime(0)
List 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


pgsql-general by date:

Previous
From: Edson Carlos Ericksson Richter
Date:
Subject: pg_base_backup limit bandwidth possible?
Next
From: Rob Sargent
Date:
Subject: Re: localtime(0)