Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

Now():-

         The now() method to create a datetime object containing the current local date and time. The contains year, month,day, hour, minute, second, and microsecond

import datetime

print(datetime.datetime.now())

Output

2023-06-22 14:44:16.380854

 

error: Content is protected !!