def label_hh24(min_num):
hours, minutes = divmod(min_num, 60)
timestamp = time(hour=hours, minute=minutes)
return time.strftime(timestamp, '%H')
# Given a minute number, return the 15 minute interval label for a 24-hour clock
评论列表
文章目录