mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fix typos in datetime documentation.
This commit is contained in:
parent
003f60486a
commit
94f89a6e02
1 changed files with 2 additions and 2 deletions
|
|
@ -1466,9 +1466,9 @@ Instance methods:
|
|||
|
||||
|
||||
>>> from datetime import time
|
||||
>>> time(hours=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes')
|
||||
>>> time(hour=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes')
|
||||
'12:34'
|
||||
>>> dt = time(hours=12, minute=34, second=56, microsecond=0)
|
||||
>>> dt = time(hour=12, minute=34, second=56, microsecond=0)
|
||||
>>> dt.isoformat(timespec='microseconds')
|
||||
'12:34:56.000000'
|
||||
>>> dt.isoformat(timespec='auto')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue