Change class name from 'Times' to 'Time', use class methods and move regex to constant.