pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Claude <pgsql-list@easynet.be>
To: pgsql-sql@postgresql.org
Subject: timestamp with postgresql 7.3
Date: Fri, 4 Apr 2003 22:18:38 +0200 (CEST)
Message-ID: <Pine.LNX.4.51.0304042118491.26366@bar.noc.be.easynet.net> (raw)


Hi,

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 tried the example in:
http://archives.postgresql.org/pgsql-bugs/2002-07/msg00117.php

and get:

DB=# select val, datetime(val), "timestamp"(val), timestamptz(val) from test_table;
ERROR:  Function datetime(integer) does not exist
        Unable to identify a function that satisfies the given argument types
        You may need to add explicit typecasts

And tried various typecasts without any success.

Any help?

---
Claude




view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.51.0304042118491.26366@bar.noc.be.easynet.net>
Permalink:  ../Pine.LNX.4.51.0304042118491.26366@bar.noc.be.easynet.net/
Also on:    postgresql.org/message-id/Pine.LNX.4.51.0304042118491.26366@bar.noc.be.easynet.net

 · 

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: pgsql-list@easynet.be
  Subject: Re: timestamp with postgresql 7.3
  In-Reply-To: <Pine.LNX.4.51.0304042118491.26366@bar.noc.be.easynet.net>

* 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