Re: epoch <-> timestamp

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: prlw1(at)cam(dot)ac(dot)uk
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: epoch <-> timestamp
Date: 2001-03-06 21:15:19
Message-ID: 20010306151519.A21988@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 06, 2001 at 12:00:53AM +0000,
Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> wrote:
> How can you get back to a timestamp from a number of seconds?

I use this sequence in a perl program where $time is the current time in
seconds since the epoch.

timestamp 'epoch' + '$time second'

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message gateley 2001-03-06 21:21:19 DELETE and efficiency
Previous Message adb 2001-03-06 20:56:42 Re: How robust is PostgreSQL