Timestamp Conversion Tool

By Mousie, 4 March, 2017

Input


 

 

Output

 

 

Update: Took Don's suggestion and added the ability to add an offset. It'll accept time in HH:MM:SS.sss, MM:SS.sss, or decimal format counting in milliseconds. Positive and negative offsets work just fine as well.

Jorge sent me an email asking how to change timestamps on recordings. I have a python script that I used but I thought it would be more useful having one here on the site for everyone to use. It detects four different timestamps:

  • HH:MM:SS.sss
  • MM:SS.sss
  • 0123ABCD
  • 0123ABCD:

even different formats within the same file and will automatically convert them into a decimal number. The JFether recorder uses the fourth one, hex notation with a ':' at the end. There's a drop down menu for selecting which output format you'd like, same list as above.

Possibly in a future release I'll add the ability to detect commands been recorded on the same line and split them accordingly and verify that they're correct.

Tags

Comments1

khyizang

7 years 8 months ago

Very nice.  Guess this confirms that we can probably handle all the file transformations using Javascript.  The binary transforms will require modifying the headers to return application/octet-stream, which will force a file download event, but that should be fine.  This website might yet turn out to be useful someday.

One addition that might come in handy is to allow input of an offset to adjust the timestamps.