adding some constants and a factory for timeParse