Skip to content

Commit 72c69c0

Browse files
authored
Merge pull request #106 from tyler-le/tle-datetime
print current date and time
2 parents 9895c35 + fbcd1ec commit 72c69c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

print_date_time.py

Lines changed: 5 additions & 0 deletions
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)