Refine
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user