Skip to content

Commit fbcd1ec

Browse files
committed
print current date and time
1 parent 9895c35 commit fbcd1ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

print_date_time.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import datetime
2+
3+
current_time = datetime.datetime.now()
4+
print("Current date and time: ")
5+
print(current_time.strftime("%Y-%m-%d %H:%M:%S"))

0 commit comments

Comments
 (0)