css::time: refactor the parser to use a switch statement instead of if statements