From: | Alberto Olivares <alberto(dot)olivares(at)snowflakesoftware(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Trigger to convert UNIX time to timestamp without time zone. |
Date: | 2014-06-06 13:19:50 |
Message-ID: | CAGdoAzh1WKBgRHYEKf3614UqCCb4QwvDLxcH=K2BBd9px7SWww@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
I want to insert data into a column "timestamp without time zone" data
type. The problem is I am receiving the data in UNIX time.
How can I create a trigger to transform the time from UNIX to timestamp
without time zone every time a new record is inserted into my database?
Thank you in advance.
Regards,
Alberto.
*Alberto Olivares Colas*Technical Consultant
Snowflake Software
Tel.: +44 (0)2380 386578
Email: alberto(dot)olivares(at)snowflakesoftware(dot)com
<ballal(dot)joglekar(at)snowflakesoftware(dot)com>
Website: www.snowflakesoftware.com
Twitter: @sflakesoftware <http://www,twitter(dot)com(at)sflakesoftware/>
Follow us on LinkedIn <http://www.linkedin.com/company/snowflake-software>
Registered in England & Wales. Registered Number: 4294244
-----------------------------------------------------------------------------------------
*Geospatial Technology Company of the Year*
*Read more <http://www.snowflakesoftware.com/2014/05/geospatial-awards/>*
--
*Geospatial Technology Company of the Year*
*Read more <http://www.snowflakesoftware.com/2014/05/geospatial-awards/>*
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Sargent | 2014-06-06 13:22:57 | Re: interpret bytea output as text / double encode() |
Previous Message | Stefan Froehlich | 2014-06-06 13:00:58 | interpret bytea output as text / double encode() |