mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702)
This commit is contained in:
parent
9d3627e311
commit
c4994dc00d
4 changed files with 22 additions and 20 deletions
|
|
@ -296,9 +296,9 @@ which should print something like this:
|
|||
|
||||
2010-12-12 11:41:42,612 is when this event was logged.
|
||||
|
||||
The default format for date/time display (shown above) is ISO8601. If you need
|
||||
more control over the formatting of the date/time, provide a *datefmt*
|
||||
argument to ``basicConfig``, as in this example::
|
||||
The default format for date/time display (shown above) is like ISO8601 or
|
||||
RFC 3339. If you need more control over the formatting of the date/time, provide
|
||||
a *datefmt* argument to ``basicConfig``, as in this example::
|
||||
|
||||
import logging
|
||||
logging.basicConfig(format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue