Round timestamps
This commit is contained in:
		
							parent
							
								
									2ecaa54e18
								
							
						
					
					
						commit
						5f65223be0
					
				| @ -34,6 +34,7 @@ function parseTimestamp(s: string): number { | ||||
| } | ||||
| 
 | ||||
| function toTimestamp(n: number): string { | ||||
| 	n = Math.floor(n); | ||||
| 	return `${Math.floor(n / 60) | ||||
| 		.toString() | ||||
| 		.padStart(2, "0")}:${(n % 60).toString().padStart(2, "0")}`;
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user