From ff72ec34a2c99acc87d69a747a2e5621adbbcd06 Mon Sep 17 00:00:00 2001 From: whalesharx <98609535+whalesharx@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:54:13 -0700 Subject: [PATCH] Add files via upload --- OTHERS/TimeandDate.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 OTHERS/TimeandDate.py diff --git a/OTHERS/TimeandDate.py b/OTHERS/TimeandDate.py new file mode 100644 index 00000000..bb2c603e --- /dev/null +++ b/OTHERS/TimeandDate.py @@ -0,0 +1,11 @@ +#find local time +import datetime + +# Print Hello, World! +print("Hello, World!") + +# Get the current time +current_time = datetime.datetime.now() + +# Print the current time +print("The current time is:", current_time.strftime("%Y-%m-%d %H:%M:%S")) \ No newline at end of file