27 Jul
2015
27 Jul
'15
6:20 a.m.
On Mon, Jul 27, 2015 at 12:15 AM, Paul Moore
I think the current naive semantics are useful and should not be discarded lightly. At an absolute minimum, there should be a clear, documented way to get the current semantics under any changed implementation.
As an example, consider an alarm clock. I want it to go off at 7am each morning. I'd feel completely justified in writing tomorrows_alarm = todays_alarm + timedelta(days=1).
That's a calendar operation made with a timedelta. The "days" attribute here is indeed confusing as it doesn't mean 1 day, it means 24 hours. //Lennart