Skip to content

Commit ff72ec3

Browse files
authored
Add files via upload
1 parent a328b66 commit ff72ec3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

OTHERS/TimeandDate.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#find local time
2+
import datetime
3+
4+
# Print Hello, World!
5+
print("Hello, World!")
6+
7+
# Get the current time
8+
current_time = datetime.datetime.now()
9+
10+
# Print the current time
11+
print("The current time is:", current_time.strftime("%Y-%m-%d %H:%M:%S"))

0 commit comments

Comments
 (0)