[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread Humberto Diogenes
Humberto Diogenes added the comment: David, as discussed on the IRC channel: maybe we could just add pointers to the OS-specific docs. Something like: """ If you want to use platform-specific format strings, search for strftime in your OS documentation (`man strftime` on POSIX systems). Linu

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread R. David Murray
R. David Murray added the comment: As you say, "on some systems". The variation is documented, and the documented codes are documented as being just those required by the C standard. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed

[issue10938] Undocumented option for datetime.strftime: %s

2011-01-18 Thread Humberto Diogenes
New submission from Humberto Diogenes : On some systems, datetime.strftime() accepts a %s format string that returns epoch / UNIX timestamp, but this behavior is not documented at http://docs.python.org/library/datetime.html Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc.