Skip to content

Commit

Permalink
fixup! time format: implement fractional time format
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjnixon committed Nov 28, 2023
1 parent e89af9e commit cec203b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ear/fileio/adm/time_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def parse_time(time_string: str) -> Fraction:
time_frac = ((hour * 60) + minute) * 60 + second

return FractionalTime.from_fraction(time_frac, denominator)
else: # decimal
second = Fraction(match.group("second"))
return ((hour * 60) + minute) * 60 + second


def parse_time_v1(time_string: str) -> Fraction:
Expand Down

0 comments on commit cec203b

Please sign in to comment.