Home
/
Python 3.11
/
Datetime
/
now
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Datetime
now
Python 3.11
Return the current local date and time.
Syntax
PYTHON
Copy
classmethod datetime.now(tz=None)
See Also
today()
time.time()
tzinfo
today()
utcnow()