@classmethod
def fromtime(cls, time):
    """
        Build a daytime from a datetime.time- or datetime.datetime-object.
        
        Args:
            time:   datetime.time- or datetime.datetime-object

        Returns a daytime.
        """
    return cls(hour=time.hour, minute=time.minute, second=time.second,
        microsecond=time.microsecond)
