pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian C. Doyle <bcdoyle@mindspring.com>
To: Jie Liang <jliang@ipinc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Convert from Seconds-Since-Epoch to Timestamp
Date: Thu, 21 Sep 2000 14:55:08 -0400
Message-ID: <5.0.0.19.2.20000921145244.02438d00@pop> (raw)
In-Reply-To: <39CA54F2.9818B78@ipinc.com>
References: <20000921181036.3514.qmail@web805.mail.yahoo.com>

how would you do that with in a query?

ie select date , interval(reltime 'table.secs');

when the value in table.secs = 54321 and "secs" is not a part of it?

At 11:35 AM 9/21/00 -0700, Jie Liang wrote:
>Hi, Webb,
>
>I am not quit sure what you really want to do, however, I assume that
>following maybe
>what you mean:
>
>
>db=# select interval(reltime '12313221 secs');
>       interval
>--------------------
>  4 mons 22 12:20:21
>(1 row)
>
>
>Webb Sprague wrote:
>
> > Hi all,
> >
> > How do I convert from seconds (an integer) to
> > timestamp?
> >
> > I am sure it is easy, but I can't find it in the docs,
> > so far.
> >
> > Thanks
> > Webb
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send instant messages & get email alerts with Yahoo! Messenger.
> > http://im.yahoo.com/
>
>--
>Jie LIANG
>
>Internet Products Inc.
>
>10350 Science Center Drive
>Suite 100, San Diego, CA 92121
>Office:(858)320-4873
>
>jliang@ipinc.com
>www.ipinc.com




view thread (4+ messages)  latest in thread

Message-ID: <5.0.0.19.2.20000921145244.02438d00@pop>
Permalink:  ../5.0.0.19.2.20000921145244.02438d00@pop/
Also on:    postgresql.org/message-id/5.0.0.19.2.20000921145244.02438d00@pop

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: bcdoyle@mindspring.com, jliang@ipinc.com
  Subject: Re: Convert from Seconds-Since-Epoch to Timestamp
  In-Reply-To: <5.0.0.19.2.20000921145244.02438d00@pop>
  References: <20000921181036.3514.qmail@web805.mail.yahoo.com> <5.0.0.19.2.20000921145244.02438d00@pop>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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