当前位置: 首页>>代码示例>>Python>>正文


Python timer.getNextActivation函数代码示例

本文整理汇总了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
开发者ID:Huevos,项目名称:enigma2,代码行数:8,代码来源:RecordTimer.py

示例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
开发者ID:idrogeno,项目名称:IdroMips,代码行数:8,代码来源:RecordTimer.py

示例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
开发者ID:OpenDMM,项目名称:enigma2,代码行数:8,代码来源:RecordTimer.py

示例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
开发者ID:TELE-TWIN,项目名称:stbgui,代码行数:8,代码来源:RecordTimer.py

示例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
开发者ID:ybagci,项目名称:enigma2,代码行数:22,代码来源:RecordTimer.py


注:本文中的timer.getNextActivation函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。