add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
62c21c1f1f
commit
cadf498fad
|
@ -27,7 +27,7 @@ current_time_utc =( datetime.datetime.now() - datetime.timedelta(hours=8)).strft
|
||||||
formatted2_current_date = current_date.strftime("%Y-%m-%d %H:%M:%S") # 获取当前日期 - 标准化
|
formatted2_current_date = current_date.strftime("%Y-%m-%d %H:%M:%S") # 获取当前日期 - 标准化
|
||||||
|
|
||||||
def formatted2_previous_date(d):
|
def formatted2_previous_date(d):
|
||||||
if h==0:
|
if d==0:
|
||||||
return datetime.date.today().strftime("%Y%m%d")
|
return datetime.date.today().strftime("%Y%m%d")
|
||||||
# 减去一个小时,得到前一个小时的开始时间
|
# 减去一个小时,得到前一个小时的开始时间
|
||||||
start_of_previous_date = datetime.date.today() - datetime.timedelta(days=d)
|
start_of_previous_date = datetime.date.today() - datetime.timedelta(days=d)
|
||||||
|
|
Loading…
Reference in New Issue