Message261014
$ python
Python 3.5.1 (default, Dec 7 2015, 12:58:09)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>> import time
>>>
>>> time.strptime("Feb 29", "%b %d")
time.struct_time(tm_year=1900, tm_mon=2, tm_mday=29, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=60, tm_isdst=-1)
>>>
>>>
>>> import datetime
>>>
>>> datetime.datetime.strptime("Feb 29", "%b %d")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/_strptime.py", line 511, in _strptime_datetime
return cls(*args)
ValueError: day is out of range for month
The same issue is seen in all versions of Python |
|
Date |
User |
Action |
Args |
2016-02-29 18:02:35 | Sriram Rajagopalan | set | recipients:
+ Sriram Rajagopalan |
2016-02-29 18:02:35 | Sriram Rajagopalan | set | messageid: <1456768955.02.0.995801288981.issue26460@psf.upfronthosting.co.za> |
2016-02-29 18:02:34 | Sriram Rajagopalan | link | issue26460 messages |
2016-02-29 18:02:34 | Sriram Rajagopalan | create | |
|