Turned timeformat into an enum