Re: Re: epoch <-> timestamp

From: Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: epoch <-> timestamp
Date: 2001-03-07 10:45:25
Message-ID: 20010307104525.D15717@quartz.newn.cam.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 06, 2001 at 03:15:19PM -0600, Bruno Wolff III wrote:
> 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'

Thanks all for the tips!

Patrick

> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

no I want to have mail sent to @cam, but send mail from @newn.cam - used
to work with pgsql-loopback...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message daniel 2001-03-07 13:01:14 database access
Previous Message Trewern, Ben 2001-03-07 10:20:51 RE: Why are tables sizes so big?