ID EN
Datetime

now

Python 3.11

Return the current local date and time.

Syntax

PYTHON
classmethod datetime.now(tz=None)

See Also

today() time.time() tzinfo today() utcnow()