Index: func.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/func.sgml,v retrieving revision 1.214 diff -c -r1.214 func.sgml *** func.sgml 12 Jul 2004 20:23:47 -0000 1.214 --- func.sgml 2 Aug 2004 13:35:45 -0000 *************** *** 4920,4925 **** --- 4920,4942 ---- 3 + + + epoch_to_timestamp(integer) + timestamp + Conversion from UNIX epoch + epoch_to_timestamp(200070000) + 1976-05-04 15:00:00 + + + + epoch_to_timestamptz(double precision) + timestamp with time zone + Conversion from UNIX epoch + + + + isfinite(timestamp) boolean *************** *** 5369,5374 **** --- 5386,5428 ---- + + + <function>epoch_to_timestamp</function>, + <function>epoch_to_timestamptz</function> + + + + The epoch_to_timestamp function converts + UNIX epoch timestamp (seconds from 1970-01-01 UTC) to timestamp + without time zone. The epoch_to_timestamptz + function accepts a double precision argument and returns + timestamp with time zone, allowing compatibility with + extract, which returns + double precision values. + + + + + epoch_to_timestamp(source) + + source is an integer value + or expression. epoch_to_timestamp returns a value + of timestamp without time zone. + + + + + epoch_to_timestamptz(source) + + source is a double precision value + or expression. (Values of integer are cast automatically.) + epoch_to_timestamptz returns a value of + timestamp with time zone. + + + + <function>date_trunc</function>