Re: to_timestamp overloaded to convert from Unix epoch - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: to_timestamp overloaded to convert from Unix epoch
Date
Msg-id 200408180300.i7I301118297@candle.pha.pa.us
Whole thread Raw
In response to to_timestamp overloaded to convert from Unix epoch  (Michael Glaesemann <grzm@myrealbox.com>)
List pgsql-patches
This has been saved for the 8.1 release:

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

---------------------------------------------------------------------------

Michael Glaesemann wrote:
> 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)
>
> If regression tests are required, I will produce some. I'd appreciate
> any pointers as to what to look for, as they would be my first attempt
> at writing regression tests.
>
> Regards
>
> Michael Glaesemann
> grzm myrealbox com
>

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] 8.0 Beta 1 // Environment Vars // .pgpass
Next
From: Bruce Momjian
Date:
Subject: Re: pg_dump 'die on errors' option