[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-10-24 Thread Raphael
Raphael added the comment: Perhaps it could be mentioned more clearly in the datetime documentation that apart from the directives of the C89 standard, you can also use those that the underlying libc strftime() supports. The following sentence from https://docs.python.org/3/library/time.htm

[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-07-30 Thread Eric V. Smith
Eric V. Smith added the comment: It's dependent on the platform's C library's strftime(). I think (but don't promise) that we document the C89 codes, but each platform might provide additional ones. -- nosy: +eric.smith ___ Python tracker

[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-07-30 Thread Marty
New submission from Marty : Output of: datetime.datetime.now().strftime('%D') is equivalent for: datetime.datetime.now().strftime('%m/%d/%y') Is there a reason that directive %D is missing in documentation? Are there other hidden directives? https://docs.python.org/3/library/datetime.html#strf