pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
converting unix seconds to timestamp
2+ messages / 1 participants
[nested] [flat]

* converting unix seconds to timestamp
@ 2004-04-23 08:46 Alexei Chetroi <lexoid@lexa.uniflux-line.net>
  2004-04-23 10:17 ` Re: converting unix seconds to timestamp Alexei Chetroi <lexoid@lexa.uniflux-line.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Alexei Chetroi @ 2004-04-23 08:46 UTC (permalink / raw)
  To: pgsql-sql


 Hi,

 I wish to convert unix seconds which are from 1970 to timestamp and connot
find appropriate function for it. I know how to convert timestamp to unix
second with extract(epoch FROM ...) but not reverse. 
 Please Help.

 Regards

--
Alexei Chetroi



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: converting unix seconds to timestamp
  2004-04-23 08:46 converting unix seconds to timestamp Alexei Chetroi <lexoid@lexa.uniflux-line.net>
@ 2004-04-23 10:17 ` Alexei Chetroi <lexoid@lexa.uniflux-line.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexei Chetroi @ 2004-04-23 10:17 UTC (permalink / raw)
  To: ; +Cc: pgsql-sql

On Fri, Apr 23, 2004 at 11:46:52AM +0300, Alexei Chetroi wrote:
> Date: Fri, 23 Apr 2004 11:46:52 +0300
> From: Alexei Chetroi <lexoid@lexa.uniflux-line.net>
> User-Agent: Mutt/1.5.5.1+cvs20040105i
> To: pgsql-sql@postgresql.org
> Subject: [SQL] converting unix seconds to timestamp
> 
> 
>  Hi,
> 
>  I wish to convert unix seconds which are from 1970 to timestamp and connot
> find appropriate function for it. I know how to convert timestamp to unix
> second with extract(epoch FROM ...) but not reverse. 

  Sorry, already found answer to my question:
  SELECT TIMESTAMP WITH TIMEZONE 'epoch' + 1082709745 * interval '1 second';

  Thanks

--
Alexei Chetroi



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-04-23 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 08:46 converting unix seconds to timestamp Alexei Chetroi <lexoid@lexa.uniflux-line.net>
2004-04-23 10:17 ` Alexei Chetroi <lexoid@lexa.uniflux-line.net>

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