Skip to content

Commit

Permalink
Update time.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarrega committed Sep 12, 2023
1 parent cc4654c commit ed7c7b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@


def get_seconds(text, to_int=False):
"""Parse the text to get the equivalent number of seconds (e.g., 1min => 60).
"""Parse the text to get the equivalent number of seconds
(e.g., 1min => 60).
:params text: input time in human format, e.g.: 1m
:params to_int: convert to int the result
Expand Down

0 comments on commit ed7c7b3

Please sign in to comment.