Python - Date & Time
Code Life
By Pierre Marsaa
The datetime Module
Python has a built-in module called datetime that lets you work with dates and times. To use it, you need to import it first.
↗️
Loading editor...
↶
↷
datetime.now() gives you the current date and time. The result is a special datetime object, not a regular string.
Verify