示例#1
0
def add(interp, this, datetime_interval=None):
    common.date_addsub(interp, this, datetime_interval, 1)
    return this
示例#2
0
def sub(interp, this, datetime_interval):
    common.date_addsub(interp, this, datetime_interval, -1)
    return this
示例#3
0
def add(interp, this, datetime_interval=None):
    common.date_addsub(interp, this, datetime_interval, 1)
    return this
示例#4
0
def sub(interp, this, datetime_interval):
    common.date_addsub(interp, this, datetime_interval, -1)
    return this
示例#5
0
def date_sub(interp, date, w_datetime_interval):
    common.date_addsub(interp, date, w_datetime_interval, -1)
    return date
示例#6
0
文件: funcs.py 项目: LewisGet/hippyvm
def date_sub(interp, date, w_datetime_interval):
    common.date_addsub(interp, date, w_datetime_interval, -1)
    return date