本文整理汇总了Python中timer.getNextActivation函数的典型用法代码示例。如果您正苦于以下问题:Python getNextActivation函数的具体用法?Python getNextActivation怎么用?Python getNextActivation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getNextActivation函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getNextRecordingTimeOld
def getNextRecordingTimeOld(self):
now = time()
for timer in self.timer_list:
next_act = timer.getNextActivation()
if timer.justplay or next_act < now:
continue
return next_act
return -1
示例2: getNextTimerTime
def getNextTimerTime(self, isWakeup=False):
now = time()
for timer in self.timer_list:
next_act = timer.getNextActivation()
if next_act < now or isWakeup and timer.justplay and timer.zap_wakeup in ("from_standby", "never"):
continue
return next_act
return -1
示例3: getNextRecordingTime
def getNextRecordingTime(self):
now = time()
for timer in self.timer_list:
next_act = timer.getNextActivation()
if timer.disabled or timer.justplay or next_act < now or timer.state >= timer.StateRunning:
continue
return next_act
return -1
示例4: getNextTimerTime
def getNextTimerTime(self):
now = time()
for timer in self.timer_list:
next_act = timer.getNextActivation()
if next_act < now:
continue
return next_act
return -1
示例5: getNextRecordingTimeOld
def getNextRecordingTimeOld(self, getNextStbPowerOn = False):
now = time()
if getNextStbPowerOn:
save_act = -1
for timer in self.timer_list:
next_act = timer.getNextActivation(getNextStbPowerOn)
if timer.justplay or next_act < now:
continue
if debug: print "[recordtimer] next stb power up", strftime("%a, %Y/%m/%d %H:%M", localtime(next_act))
if save_act == -1:
save_act = next_act
else:
if next_act < save_act:
save_act = next_act
return save_act
else:
for timer in self.timer_list:
next_act = timer.getNextActivation()
if timer.justplay or next_act < now:
continue
return next_act
return -1