Implemented time.js parser constructor

Remove time.js parser function. Instead, implemented a time parser constructor.

Change-Id: Ie69fbcdf31590542a156df6cba66f14e6c71d6b9