Implement time parser