zackhall/ng2-clock

[FEATURE REQUEST] Hours?

Opened this issue · 1 comments

Hi!
This is brilliant! I been trying to figure out how to create something like this. This has helped me a lot so thank you for that. I was wondering how I would I add an hours marker to this?

In case u still need this, copy and replace this code

let hours: string,
minutes: string,
seconds: string;
hours = Math.floor(timeMs / 3600000).toString();
timeMs = timeMs % 3600000;
minutes = Math.floor(timeMs / 60000).toString();
seconds = ((timeMs % 60000) / 1000).toFixed(3);
return hours + ':' + minutes + ':' + (+seconds < 10 ? '0' : '') + seconds;