Exemplo n.º 1
0
 def from_moment(cls, tee):
     """Return clock time hour:minute:second from moment 'tee'."""
     time = cls.time_from_moment(tee)
     hour = ifloor(time * 24)
     minute = ifloor(mod(time * 24 * 60, 60))
     second = mod(time * 24 * 60 * 60, 60)
     return Clock(hour, minute, second)
Exemplo n.º 2
0
 def fixed_from_moment(cls, tee):
     """Return fixed date from moment 'tee'."""
     return ifloor(tee)