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