PYthon getting current time in particular format code example
Example 1: oython get time
from datetime import datetime
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
Example 2: display current local time in readable format
import time
time.strftime('%X %x %Z')
'16:08:12 05/08/03 AEST'