Like Timothy said, you didn't give enough info. Check out the perldoc for localtime first to see if that solves your problem, and if not please post a code example. You can get the localtime docs by either typing the following from the command like or navigating to the perlfunc manpage in your HTML documentation.
perldoc -f localtime Rob -----Original Message----- From: Mariusz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 1:57 AM To: perl 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]