ng2-clock icon indicating copy to clipboard operation
ng2-clock copied to clipboard

[FEATURE REQUEST] Hours?

Open 9thwall opened this issue 8 years ago • 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?

9thwall avatar Sep 30 '16 21:09 9thwall

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;

MihailoVasovic avatar Feb 09 '17 20:02 MihailoVasovic