discord-dota-bot/utils.py
Ching e109649c95 feat(players.py, matches.py, utils.py): 补充比赛序列化方法,增加 utils
补充比赛序列化方法,增加 utils

Signed-off-by: Ching <loooching@gmail.com>
2023-09-15 14:58:14 +08:00

5 lines
168 B
Python

def convert_seconds_to_hms(total_seconds):
hours, remainder = divmod(total_seconds, 3600)
minutes, seconds = divmod(remainder, 60)
return hours, minutes, seconds