created time parser and given the responsibility of parsing the time into this class