This file contains hidden or 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
import argparse | |
import librosa # you need librosa to get this working | |
import datetime | |
def parse_delta(s): | |
date = datetime.datetime.strptime(s, "%H:%M:%S") | |
return datetime.timedelta(hours=date.hour, minutes=date.minute, seconds=date.second) |