pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Glaesemann <grzm@myrealbox.com>
To: Bret Hughes <bhughes@elevating.com>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: definative way to place secs from epoc into timestamp
Date: Thu, 3 Mar 2005 15:41:00 +0900
Message-ID: <2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com> (raw)
In-Reply-To: <1109828560.27905.137.camel@bretsony>
References: <1109780719.28180.86.camel@bretsony>
	<13089.1109793126@sss.pgh.pa.us>
	<1109794066.27857.100.camel@bretsony>
	<13466.1109795186@sss.pgh.pa.us>
	<1109828560.27905.137.camel@bretsony>


On Mar 3, 2005, at 14:42, Bret Hughes wrote:

> also my first two pgsql functions :)
>
> cat ts2int.sql

FWIW, there's a patch in the queue for 8.1 that adds a to_timestamp 
function that converts between Unix epoch and timestamp with time zone.

http://momjian.postgresql.org/cgi-bin/pgpatches2

Doesn't help you now, but it'll be there in the future.

Michael Glaesemann
grzm myrealbox com




view thread (19+ messages)  latest in thread

Message-ID: <2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com>
Permalink:  ../2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com/
Also on:    postgresql.org/message-id/2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com

 · 

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: grzm@myrealbox.com, bhughes@elevating.com
  Subject: Re: definative way to place secs from epoc into timestamp
  In-Reply-To: <2bf00b6e6300e2c76bc3c09fa89e7913@myrealbox.com>

* 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