Manipulating DateTime and TimeDelta objects in python
问题 I am wondering how to manipulate Datetime and Time delta objects. I am writing a game where different planets have different timescales. And I was wondering how it might be possible to mod datetime objects. For example if I have a date time object - some past datetime object I was wondering if it was possible to know how many times 6 hours might into the different and what the remainder in minutes was? For example... now = datetime.now() then = some datetime object diff = now - then num 6