This commit is contained in:
Harvey Zack committed 2018-10-24 16:23:41 +08:00
1 parent 9aa2bf1588
commit 26ce79e459
6 files changed
+8 -12

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ export function setStyle(element, styles) {
}
export function secondToTime(second) {
const add0 = num => (num < 10 ? `0${num}` : String(num));
const add0 = num => num < 10 ? `0${num}` : String(num);
const hour = Math.floor(second / 3600);
const min = Math.floor((second - hour * 3600) / 60);
const sec = Math.floor(second - hour * 3600 - min * 60);