1.新增机台日计划接口

2.新工件预调(前置三元检测)接口
3.,新NC程序下载接口接口
This commit is contained in:
jinling.yang
2024-01-16 17:25:25 +08:00
parent d6e36eea99
commit 4f0c7ad274
2 changed files with 116 additions and 1 deletions

View File

@@ -19,3 +19,13 @@ class Common(models.Model):
'TIMESTAMP': str(timestamp),
'checkstr': check_sf_str}
return headers
def get_add_time(self, parse_time):
"""
把时间增加8小时
:return:
"""
dt = datetime.datetime.strptime(parse_time, "%Y-%m-%d %H:%M:%S")
d = dt + datetime.timedelta(hours=8)
nTime = d.strftime("%Y-%m-%d %H:%M:%S")
return nTime