Tidbits | March 19, 2007

DateTime: Common Calcuations

Over the course of the last year or so I've fallen in love with DateTime set of modules. However, I think their docs are a bit lacking for some simple calculations. Often I need to know how many hours, minutes, or seconds ( or some combo of them ) exist between two DateTime objects.


perl  

2007-03-19T03:33:13-05:00 2018-04-18T16:09:40.971958-05:00 2007 perl