add sysutils.py

This commit is contained in:
aozhiwei 2019-09-12 15:21:58 +08:00
parent 4e72a9cbed
commit d0a9dbec82
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
#!/usr/bin/python
from .sysutils import *

7
q7/sysutils.py Normal file
View File

@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
#!/usr/bin/python
def getDaySeconds(time_val, incdays):
time_zone = 8
return int((time_val + time_zone * 3600)/3600/24 + incdays) * 3600 * 24 - 3600 * time_zone;