Пример #1
0
def ixtime(t=None, force=False):
    if t is None:
        t = now(force)
    r = unixtime(t) - unixtime(realStartup if force else startup)
    return "%.1f" % (r, )
Пример #2
0
def ttime():
    return time() - unixtime(startup)
Пример #3
0
def ixtime(t=None,force=False):
	if t is None:
		t = now(force)
	r = unixtime(t)-unixtime(realStartup if force else startup)
	return "%.1f" % (r,)
Пример #4
0
def ttime():
	return time()-unixtime(startup)
Пример #5
0
	def value(self):
		if self._plinger is None:
			return None
		return unixtime(self.end)-unixtime(now(self.force))
Пример #6
0
	def ixtime(t,_=None):
		return unixtime(t)
Пример #7
0
	def _set_pling(self):
		timeout = unixtime(self.end) - unixtime(now(self.force))
		if timeout <= 0.1:
			timeout = 0.1
		self.stop_job("_plinger")
		self.start_job("_plinger",self._pling, timeout)
Пример #8
0
 def ixtime(t, _=None):
     return unixtime(t)
Пример #9
0
 def value(self):
     if self._plinger is None:
         return None
     return unixtime(self.end) - unixtime(now(self.force))
Пример #10
0
 def _set_pling(self):
     timeout = unixtime(self.end) - unixtime(now(self.force))
     if timeout <= 0.1:
         timeout = 0.1
     self.stop_job("_plinger")
     self.start_job("_plinger", self._pling, timeout)
Пример #11
0
	def msg(self):
		return "update %s %d:%s" % (self.file.filename,int(unixtime(now())),":".join((str(x) for x in self.val)))