Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix DateDiff (going back in time)

Status
Not open for further replies.

bcicsuci

MIS
Jun 28, 2002
9
US
Is there another way to calculate the time and date based on the current time minus an hour and 5 minutes? I have a query that uses

x1.dtimecre > (current - interval (1:05) hour to minute )

in the where clause which works. However, I have a Perl job that uses a prepare statement that does not seem to accept the code listed above. Is there an alternative to the code used above?

Thank you,
 
You may try this:
x1.dtimecre > (current - 1 units hour - 5 units minute)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top