Fix ConvertTimestamp bug
This commit is contained in:
		
							parent
							
								
									f6d4e06c34
								
							
						
					
					
						commit
						394fde905d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -202,7 +202,7 @@ def ReadCommentsSH5V (f, fontsize): | |||
| def ConvertTimestamp(timestamp): | ||||
|     hour, minute = divmod(timestamp, 3600) | ||||
|     minute, second = divmod(minute, 60) | ||||
|     centsecond = round(second*100.0) | ||||
|     centsecond = round((second-int(second))*100.0) | ||||
|     return '%d:%02d:%02d.%02d' % (int(hour), int(minute), int(second), centsecond) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Star Brilliant
						Star Brilliant