I want to write python script that acts as a time calculator.
For example:
Suppose the time is now 13:05:00
I want to add 1 hour, 23 minutes, and 10 seco
Look at mx.DateTime, and DateTimeDelta in particular.
mx.DateTime
DateTimeDelta
import mx.DateTime d = mx.DateTime.DateTimeDelta(0, 1, 23, 10) x = mx.DateTime.now() + d x.strftime()
Keep in mind that time is actually a rather complicated thing to work with. Leap years and leap seconds are just the beginning...