📜  python timedelta 用分数获取天数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.580000             🧑  作者: Mango

代码示例1
from datetime import timedelta

def get_days_between(datePast, dateFuture):
   difference = dateFuture - datePast
   return difference.total_seconds() / timedelta(days=1).total_seconds()