I've been trying to get this time formatted value from 203045 to 20:40:45 in python. I clearly have no clue where to start. Any help will be appreciated!
strftime functions from
datetime, the former constructs a datetime object from string and the latter format datetime object to string with specific format:
from datetime import datetime datetime.strptime("203045", "%H%M%S").strftime("%H:%M:%S") # '20:30:45'