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!

Calculating Time 1

Status
Not open for further replies.

egrant

Programmer
Mar 6, 2003
42
0
0
AU
Hi All,

Is there a way to calculate the difference between two times with cgi?

ie...

Start 12:30
End 13:15

Time difference = 45mins

I tried to do this as a calculation in CGI like...

13:15 - 12:30 but it seems to be just caclulating the hour so the result is 1.

Any ideas?

E
 
Thanks. That should do the trick!

You deserve a star ------------------------> *

E
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top