Time unit as an ES6 class