public static function fromNative(\DateTimeInterface $dateTime) : TimeOfDay
    {
        return new self((int)$dateTime->format('H'), (int)$dateTime->format('i'), (int)$dateTime->format('s'));
    }
public static function fromNative(\DateTimeInterface $dateTime) : TimeOfDay
    {
        return new self((int)$dateTime->format('H'), (int)$dateTime->format('i'), (int)$dateTime->format('s'));
    }
public static function fromNative ( \ DateTimeInterface $ dateTime ) : TimeOfDay { return new self ( ( int ) $ dateTime -> format ( 'H' ) , ( int ) $ dateTime -> format ( 'i' ) , ( int ) $ dateTime -> format ( 's' ) ) ; }
Creates a time object from the time part of the supplied date time.

@param \DateTimeInterface $dateTime

@return TimeOfDay
Creates a time object from the time part of the supplied date time .