feat(abyss_info): 以“XX分XX秒”形式展示每间的耗时

This commit is contained in:
meatjam 2022-03-27 22:11:34 +08:00
parent 382c7e899f
commit da14913fb9

View File

@ -27,7 +27,8 @@ def get_chan_time(timeStamp1, timeStamp2):
date = dateArray1.strftime("%Y.%m.%d")
otherStyleTime1 = dateArray1.strftime("%H:%M:%S")
otherStyleTime2 = dateArray2.strftime("%H:%M:%S")
return date + otherStyleTime1 + '-' + otherStyleTime2
time_consumed = timeStamp2 - timeStamp1
return f'{date} {otherStyleTime1}-{otherStyleTime2} {str(time_consumed//60).rjust(2,"0")}{str(time_consumed%60).rjust(2,"0")}'
async def draw_abyss_floor_card(floor, floor_n):
floor_img = Image.open(os.path.join(res_path, 'abyss', f'floor{floor_n}_long.png')).convert('RGBA')