Parse time as time.Time
Add tests