Skip to content

Error in example of datetime.time.fromisoformat  #112925

Closed
@F-park

Description

@F-park

Documentation

>>> time.fromisoformat('04:23:01,000')
datetime.time(4, 23, 1, 384)

I consider the correct example should be below.

>>> time.fromisoformat('04:23:01,000384') 
datetime.time(4, 23, 1, 384) 

python docs version

  • 3.11
  • 3.12
  • 3.13

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixesdocsDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions