Make TIMESTAMP + TIME in the source code - Mailing list pgsql-hackers

From Luis D. García
Subject Make TIMESTAMP + TIME in the source code
Date
Msg-id 3de424340703191516sf4b8d4bo115df4b49fc2c101@mail.gmail.com
Whole thread Raw
Responses Re: Make TIMESTAMP + TIME in the source code  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Hello, I'm writinng again because I need to make some validation for<br />the incoming data (VALUES... on the
INSERT-Stmt).This validation<br />is based on adding a TIMESTAMP and a TIME kind of data.<br /><br />From the Shell I
canmake: <br /><br /><span style="font-weight: bold;">template1=#</span> select timestamp '02/03/85
7:00pm'+'00:00:02.3450'as "TIMESTAMP+TIME";<br /><br />And that would give me the next result:<br /><span
style="font-weight:bold;">      <br />   TIMESTAMP+TIME</span><br />      -------------------------<br /> 1985-02-03
19:00:02.345<br/><br />That's exactly wath I need to do, obtain the result from adding a TIMESTAMP<br />and a TIME, but
Imust do it from the Postgre's source code, since I'm working <br />on modifying Postgres for a University Project
(herein Venezuela we call it<br />"Tesis" or "Graduation Special Work".<br /><br />Due to this, I need to know if
there'sa special function on Postgre's backend <br />code that can do this.<br /><br />Greetings, I hope you could help
meon this.<br /><br />PD: in adition, both data (TIMESTAMP and TIME) are stored in strings (char *).<br />The TIME is
storedon the <span style="font-weight: bold;"> <span style="font-style: italic;">pg_class</span></span> structure
(thanksto a modification I made),<br />and the TIMESTAMP is given on the INSERT values.<br />-- <br />Luis D. García
M.<br/><br />Telf: (+58) 2418662663 <br />Cel.: (+58) 4143482018 <br /><br />- FACYT - UC -<br />- Computación -  

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Buildfarm feature request: some way to track/classify failures
Next
From: Tom Lane
Date:
Subject: Re: Buildfarm feature request: some way to track/classify failures