time_modify = datetime.fromtimestamp(os.path.getmtime('./hk_data.xls'))
diff_time = datetime.now() - time_modify
if diff_time.days >= 1 or (diff_time.seconds // 3600) >= 12:
01-18
1104
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-06
1121
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)