Example #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, )
Example #2
0
def ttime():
    return time() - unixtime(startup)
Example #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,)
Example #4
0
def ttime():
	return time()-unixtime(startup)
Example #5
0
File: wait.py Project: smurfix/MoaT
	def value(self):
		if self._plinger is None:
			return None
		return unixtime(self.end)-unixtime(now(self.force))
Example #6
0
File: wait.py Project: smurfix/MoaT
	def ixtime(t,_=None):
		return unixtime(t)
Example #7
0
File: wait.py Project: smurfix/MoaT
	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)
Example #8
0
 def ixtime(t, _=None):
     return unixtime(t)
Example #9
0
 def value(self):
     if self._plinger is None:
         return None
     return unixtime(self.end) - unixtime(now(self.force))
Example #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)
Example #11
0
	def msg(self):
		return "update %s %d:%s" % (self.file.filename,int(unixtime(now())),":".join((str(x) for x in self.val)))