decodeTime() improvements and make accessible