Message356041
Negative `timedelta` string representation is ambiguous.
```
>>> from datetime import datetime, timedelta
>>> d2 = datetime.now()
>>> d1 = d2 - timedelta(days=42, seconds=5)
>>> str(d2 - d1)
'42 days, 0:00:05'
>>> str(d1 - d2)
'-43 days, 23:59:55'
```
I would expect `str(d1 - d2)` to be one of the following:
* '-42 days, 0:00:05'
* '-(42 days, 0:00:05)'
* '- 42 days, 0:00:05' |
|
Date |
User |
Action |
Args |
2019-11-05 15:48:39 | lig | set | recipients:
+ lig |
2019-11-05 15:48:39 | lig | set | messageid: <1572968919.3.0.316665305196.issue38701@roundup.psfhosted.org> |
2019-11-05 15:48:39 | lig | link | issue38701 messages |
2019-11-05 15:48:38 | lig | create | |
|