pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hans-Juergen Schoenig <hs@bachata.cybertec.at>
To: pgsql-sql@postgresql.org
Subject: Re: How to Get Timestamp From SECONDS?
Date: Sat, 15 Sep 2001 10:56:57 +0200
Message-ID: <3BA317D9.480EB2F3@bachata.cybertec.at> (raw)
References: <Pine.LNX.4.20.0109141852220.1812-100000@Larry.bks>

Try it with something like that:

mydata=# SELECT '1-1-2001'::timestamp + '200 seconds'::interval;
        ?column?
------------------------
 2001-01-01 00:03:20+01
(1 row)


epoch + seconds = desired timestamp.

    Hans




view thread (2+ messages)

Message-ID: <3BA317D9.480EB2F3@bachata.cybertec.at>
Permalink:  ../3BA317D9.480EB2F3@bachata.cybertec.at/
Also on:    postgresql.org/message-id/3BA317D9.480EB2F3@bachata.cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: hs@bachata.cybertec.at
  Subject: Re: How to Get Timestamp From SECONDS?
  In-Reply-To: <3BA317D9.480EB2F3@bachata.cybertec.at>

* 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