Re: timestamp with postgresql 7.3

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Claude <pgsql-list(at)easynet(dot)be>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: timestamp with postgresql 7.3
Date: 2003-04-04 22:05:02
Message-ID: 20030404140146.W97589-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Fri, 4 Apr 2003, Claude wrote:

> I have a table a field with timestamps in seconds since epoch and I would
> like to get a human readable date... but it seems that postgresql 7.3 does
> not support the datetime(), timestamp(), timestamptz() functions...

I'd say probably something like:

CAST('epoch' as timestamp with time zone) + integerfield * INTERVAL '1 second'

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Lee Harr 2003-04-04 22:58:16 Re: Difficult query (for me)
Previous Message Dan Langille 2003-04-04 22:01:32 Re: timestamp with postgresql 7.3