Where are you getting the hours from? A file, localtime(), etc.? -----Original Message----- From: Mariusz To: perl Sent: 3/18/02 10:56 PM Subject: time calculation
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 -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]