Re: convert integer seconds to timestamp

From: Wilson Fletcher <research(at)mclachlan(dot)com(dot)au>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: convert integer seconds to timestamp
Date: 2003-10-16 03:44:35
Message-ID: 20031016134435.B7903@mclachlan.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Sorry again. I don't think I will post any more. I have found the answer I needed.

Thanks. Sorry for the redundant questions.

On Thu, Oct 16, 2003 at 01:39:40PM +1000, Wilson Fletcher wrote:
> Sorry, I found the answer to this on the list.
>
> ie. select date::abstime from ....
>
> BUT, how do I get it in local time ? ie. - 10 or 11 hours depending on daylight savings.
>
> thanks.
>
> On Thu, Oct 16, 2003 at 01:31:11PM +1000, Wilson Fletcher wrote:
> > How can I convert epoch seconds (as an interger) to a timestamp ?
> >
> > I've already seen the post below BUT it doesn't work. I suspect it is out of date:
> > http://archives.postgresql.org/pgsql-sql/2000-09/msg00190.php
> >
> > thanks.
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
>
> ---------------------------(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)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message R. van Twisk 2003-10-16 06:25:26 Re: Sorting problem
Previous Message Wilson Fletcher 2003-10-16 03:39:40 Re: convert integer seconds to timestamp