Message293212
| Author |
musically_ut |
| Recipients |
musically_ut |
| Date |
2017年05月07日.19:57:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1494187046.46.0.90330515352.issue30302@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Currently, the default implementation of datetime.datetime.__repr__ (the default output string produced at the console/IPython) gives a rather cryptic output:
from datetime import datetime as D
D.fromtimestamp(1390953543.1) - D.fromtimestamp(1121871596)
# datetime.timedelta(3114, 28747, 100000)
For the uninitiated, it is not obvious that the numeric values here are `days`, `seconds` and `microsecond` respectively.
Would there be any pushback against changing this to:
# datetime.timedelta(days=3114, seconds=28747, microseconds=100000)
? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年05月07日 19:57:27 | musically_ut | set | recipients:
+ musically_ut |
| 2017年05月07日 19:57:26 | musically_ut | set | messageid: <1494187046.46.0.90330515352.issue30302@psf.upfronthosting.co.za> |
| 2017年05月07日 19:57:26 | musically_ut | link | issue30302 messages |
| 2017年05月07日 19:57:25 | musically_ut | create |
|