feat: time tracking in minutes
This commit is contained in:
7
utils/work_time.py
Normal file
7
utils/work_time.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from math import floor
|
||||
|
||||
|
||||
def hours_to_hours_and_minutes(hours: float) -> tuple[int, int]:
|
||||
res_hours = int(floor(hours))
|
||||
minutes = int(round((hours - res_hours) * 60))
|
||||
return res_hours, minutes
|
||||
Reference in New Issue
Block a user