Please find attached a patch (diff -c against cvs HEAD) to add a
authorBruce Momjian <bruce@momjian.us>
Thu, 9 Jun 2005 16:35:09 +0000 (16:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 9 Jun 2005 16:35:09 +0000 (16:35 +0000)
commit4d0e7b4aace5cdad7137d6efe71bcad4015c2518
tree00b6985a75fc5a729075cf1ca2c51012f232527d
parent4a5cda7bba7c5aee9298f5bc3f287b299cdee634
Please find attached a patch (diff -c against cvs HEAD) to add a
function that accepts a double precision argument assumed to be a Unix
epoch timestamp and returns timestamp with time zone, and accompanying
documentation.

Usage:

test=# select to_timestamp(200120400);
       to_timestamp
------------------------
  1976-05-05 14:00:00+09
(1 row)

Michael Glaesemann
doc/src/sgml/func.sgml
src/include/catalog/pg_proc.h