Message146750
| Author |
flox |
| Recipients |
belopolsky, ezio.melotti, flox, vstinner |
| Date |
2011年10月31日.22:59:35 |
| SpamBayes Score |
6.016077e-05 |
| Marked as misclassified |
No |
| Message-id |
<1320101975.87.0.905530497538.issue13305@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There's many discrepancies between OS X and Linux about time formatting...
OS X
>>> from datetime import datetime
>>> datetime(1900, 1, 1).strftime("%6Y")
'6Y'
Linux
>>> from datetime import datetime
>>> datetime(1900, 1, 1).strftime("%6Y")
'001900'
BTW, these discrepancies are already mentioned:
http://docs.python.org/dev/library/datetime.html#strftime-strptime-behavior
"The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common."
We should had an asterisk to the "%Y" saying that the padding is not consistent across platforms. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月31日 22:59:36 | flox | set | recipients:
+ flox, belopolsky, vstinner, ezio.melotti |
| 2011年10月31日 22:59:35 | flox | set | messageid: <1320101975.87.0.905530497538.issue13305@psf.upfronthosting.co.za> |
| 2011年10月31日 22:59:35 | flox | link | issue13305 messages |
| 2011年10月31日 22:59:35 | flox | create |
|