> Hi there, > > I've got a date field and a time field, how can I effectively subtract the > field ($date $time) - ($date2 $time2) from each other. I am using these > two fields to determine a server's uptime according to my database in > days,hours,minutes,seconds. I have read numourous articles and posts on > suggestions and came up with nothing. Could someone please give me some > example code to do this. > > I'm sort of stuck!
What have you tried, what didn't work or you didn't understand? Date::Calc Date::Manip DateTime All make this trivial. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
