Message16609
Simply put, strftime can't handle the empty string.
>>> import datetime
>>> now = datetime.datetime.utcnow()
>>> now.strftime( '%d' )
'26'
>>> now.strftime( '' )
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
SystemError: C:\Code\23b1
\Objects\stringobject.c:3315: bad argument to internal
function
This is inconsistent with the docs and the time.strftime
function.
>>> import time
>>> time.strftime( '', time.gmtime() )
''
Do I need to make any more justification for having the
empty format string return an empty string? |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:14:15 | admin | link | issue761337 messages |
| 2007-08-23 14:14:15 | admin | create | |
|