This commit is contained in:
DingZQ
2025-04-04 12:36:59 +08:00
parent 094d6b690a
commit 65d6b6aa66

View File

@@ -104,3 +104,11 @@ def get_day_end(dt: datetime.date) -> datetime:
'''
return dt.replace(hour=23, minute=59, second=59, microsecond=0)
def get_date_from_time(time: str) -> str:
'''
将一个时间点,转换成日期
'''
dt = parse_beijing_time(time)
return dt.date()