code: def from_time(cls, source):
          
          return cls(hours=source.hour, minutes=source.minute,
              seconds=source.second, milliseconds=source.microsecond // 1000)
docs: datetime.time -> SubRipTime corresponding to time object