Пример #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)
Пример #2
0
 def fixed_from_moment(cls, tee):
     """Return fixed date from moment 'tee'."""
     return ifloor(tee)