How do I check the difference, in seconds, between two dates?

There has to be an easier way to do this. I have objects that want to be refreshed every so often, so I want to record when they were created, check against the current timestamp, and refresh as necessary.

datetime.datetime has proven to be difficult, and I don’t want to dive into the ctime library. Is there anything easier for this sort of thing?

7 Answers
7

Leave a Comment