add sysutils.py
This commit is contained in:
parent
4e72a9cbed
commit
d0a9dbec82
@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#!/usr/bin/python
|
||||
|
||||
from .sysutils import *
|
7
q7/sysutils.py
Normal file
7
q7/sysutils.py
Normal 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user