pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedconvert integer seconds to timestamp
3+ messages / 1 participants
[nested] [flat]
* convert integer seconds to timestamp
@ 2003-10-16 03:31 Wilson Fletcher <research@mclachlan.com.au>
0 siblings, 1 reply; 3+ messages in thread
From: Wilson Fletcher @ 2003-10-16 03:31 UTC (permalink / raw)
To: pgsql-sql
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: convert integer seconds to timestamp
@ 2003-10-16 03:39 Wilson Fletcher <research@mclachlan.com.au>
parent: Wilson Fletcher <research@mclachlan.com.au>
0 siblings, 1 reply; 3+ messages in thread
From: Wilson Fletcher @ 2003-10-16 03:39 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: convert integer seconds to timestamp
@ 2003-10-16 03:44 Wilson Fletcher <research@mclachlan.com.au>
parent: Wilson Fletcher <research@mclachlan.com.au>
0 siblings, 0 replies; 3+ messages in thread
From: Wilson Fletcher @ 2003-10-16 03:44 UTC (permalink / raw)
To: 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@postgresql.org)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-10-16 03:44 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16 03:31 convert integer seconds to timestamp Wilson Fletcher <research@mclachlan.com.au>
2003-10-16 03:39 ` Wilson Fletcher <research@mclachlan.com.au>
2003-10-16 03:44 ` Wilson Fletcher <research@mclachlan.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox