Created
November 1, 2022 13:33
-
-
Save samirsaci/96a7321c881abbe6a1ca9792a519a883 to your computer and use it in GitHub Desktop.
Automate Video Editing - Convert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_seconds(tstamp): | |
# Format 'hh:mm:ss' | |
s = int(tstamp[6:8]) | |
m = int(tstamp[3:5])*60 | |
h = int(tstamp[0:2])*3600 | |
total = s + m + h | |
return total | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment