python print formatted time code example Example: display current local time in readable format import time time.strftime('%X %x %Z') '16:08:12 05/08/03 AEST'