http://qs321.pair.com?node_id=408173


in reply to How do I find difference between two timestamps?

Perl's DateTime modules provide an excellent way of dealing with dates and times. Your problem is very similar to one of DateTime's FAQs.