Compare commits
No commits in common. "cd4affcb6f4a6b01834a0414283705b0b100cbff" and "10b005cd258ef655de96d656e2c9ede8787625e1" have entirely different histories.
cd4affcb6f
...
10b005cd25
@ -119,16 +119,12 @@ export async function getCurrentHourTime():Promise<string> {
|
|||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
s = s < 10 ? '0' + s : s;
|
s = s < 10 ? '0' + s : s;
|
||||||
let ss = date.getMilliseconds();
|
let ss = date.getMilliseconds();
|
||||||
let nowSS = ''
|
//@ts-ignore
|
||||||
if(ss < 10){
|
ss = ss < 10 ? '00' + ss : ss;
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
nowSS = '00' + ss
|
ss = ss < 100 ? '0' + ss : ss;
|
||||||
}
|
|
||||||
if(ss >= 10 && ss < 100){
|
return `${h}${m}${s}${ss}`
|
||||||
//@ts-ignore
|
|
||||||
nowSS = '0' + s
|
|
||||||
}
|
|
||||||
return `${h}${m}${s}${nowSS||ss}`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//时间戳转日期
|
//时间戳转日期
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user