<reponame>inderpal2406/python-practice-2022<gh_stars>0
# This script will display current date and time.
# In this script we use the time module, but datetime module can also be used.

# Import modules.

import time

# Display date.

todays_date=time.strftime("%d-%m-%Y")
print(f"Today's date: {todays_date}")

# Display time.

current_time=time.strftime("%H:%M:%S")
print(f"Current time: {current_time}")

# This script will display current date and time.
# In this script we use the time module, but datetime module can also be used.

# Import modules.

import time

# Display date.

todays_date=time.strftime("%d-%m-%Y")
print(f"Today's date: {todays_date}")

# Display time.

current_time=time.strftime("%H:%M:%S")
print(f"Current time: {current_time}")
# This script will display current date and time. # In this script we use the time module, but datetime module can also be used. # Import modules. # Display date. # Display time.