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.
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (270 votes),