I have an apache log which has timestamps like:
[03/Feb/2013:02:52:05 +0000]
As a string. for my purposes the trailing +0000 isn't needed. My end goal is to get the time-difference between two time stamps in minutes. Is there a more elegant, less verbose approach than just hacking up and comparing the elements in a piecemeal, ripple-adding fashion?
Ideally I'd like to do as little as possible to the string before using it to initialize a time object of some sort, which has a 'compare_to( )' type method.
I'm relatively new to python, so I'm sorry if there's an obvious library or approach for this, but I haven't been able to find one.