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
 | ||||
|   s = s < 10 ? '0' + s : s; | ||||
|   let ss = date.getMilliseconds(); | ||||
|   let nowSS = '' | ||||
|   if(ss < 10){ | ||||
|     //@ts-ignore
 | ||||
|     nowSS = '00' + ss | ||||
|   } | ||||
|   if(ss >= 10 && ss < 100){ | ||||
|     //@ts-ignore
 | ||||
|     nowSS = '0' + s | ||||
|   } | ||||
|   return `${h}${m}${s}${nowSS||ss}` | ||||
|   //@ts-ignore
 | ||||
|   ss = ss < 10 ? '00' + ss : ss; | ||||
|   //@ts-ignore
 | ||||
|   ss = ss < 100 ? '0' + ss : ss; | ||||
| 
 | ||||
|   return `${h}${m}${s}${ss}` | ||||
| } | ||||
| 
 | ||||
| //时间戳转日期
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user