标签云

微信群

扫码加入我们

WeChat QR Code


related Python issue: datetime.time support for '+' and '-'

2018年09月26日51分55秒

To avoid OverflowErrors, I'd recommend using a different dummy date, eg a couple of years later: datetime(101,1,1,11,34,59). If you try subtracting a large timedelta from the date above, you'll get an "OverflowError: date value out of range" error as the year for a datetime object cannot be smaller than 1

2018年09月26日51分55秒

pheelicks, done, albeit a little late, not exactly agile response times :-) Since I had to fix another bug in my code, I thought I'd incorporate your suggestion at the same time.

2018年09月26日51分55秒

I like this one. Nice and clear with the specified argument.

2018年09月26日51分55秒

Thanks - great idea

2018年09月26日51分55秒

please ALWAYS add explanations, newcomers might not have a clue what you are doing here.

2018年09月26日51分55秒