This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lig
Recipients lig
Date 2019-11-05.15:48:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572968919.3.0.316665305196.issue38701@roundup.psfhosted.org>
In-reply-to
Content
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'
History
Date User Action Args
2019-11-05 15:48:39ligsetrecipients: + lig
2019-11-05 15:48:39ligsetmessageid: <1572968919.3.0.316665305196.issue38701@roundup.psfhosted.org>
2019-11-05 15:48:39liglinkissue38701 messages
2019-11-05 15:48:38ligcreate