develooper Front page | perl.beginners | Postings from March 2002

time calculation

Thread Next
From:
Mariusz
Date:
March 19, 2002 00:01
Subject:
time calculation
Message ID:
OE25eXacRqoyYOqAa350002034b@hotmail.com
What's the best way to find the difference in hours between $checkin_time and $checkout_time?
I thought each hour from 12am through 12pm would supply integer from 0 to 24 (e.g. 9am to 5pm is 17-9=8) but that does work except when checkout is 12am.(I don't have to deal with minutes in this script)
Thanks
Mariusz 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About