Current DateTime

Imagine you are creating an event scheduling system for a busy corporate executive. They need to constantly track the current date and time down to the exact second to maintain their precise schedule. To fulfill this need, you are required to create a program that utilizes Python's datetime module to display the current date and time.
Your task is to display the current date and time in the format dd-mm-yyyy hh:mm:ss.
The first and only line of output should be the current date and time in the described format. Given that the exact time might differ slightly due to the checker’s execution time, the checker will consider as correct an output within a ±10 seconds range.
Input
Output
24-07-2023 16:00:00
Note: There are no inputs in this problem. The output time in the example is just a placeholder. The actual output should be the current date and time at the time of execution within a ±10 seconds range.
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue