public static function fromNativeDateTime(\DateTime $time)
    {
        $hour   = \intval($time->format('G'));
        $minute = \intval($time->format('i'));
        $second = \intval($time->format('s'));

        return static::fromNative($hour, $minute, $second);
    }
public static function fromNativeDateTime(\DateTime $time)
    {
        $hour   = \intval($time->format('G'));
        $minute = \intval($time->format('i'));
        $second = \intval($time->format('s'));

        return static::fromNative($hour, $minute, $second);
    }
public static function fromNativeDateTime ( \ DateTime $ time ) { $ hour = \ intval ( $ time -> format ( 'G' ) ) ; $ minute = \ intval ( $ time -> format ( 'i' ) ) ; $ second = \ intval ( $ time -> format ( 's' ) ) ; return static :: fromNative ( $ hour , $ minute , $ second ) ; }
Returns a new Time from a native PHP \DateTime

@param  \DateTime $time
@return self
Returns a new Time from a native PHP \ DateTime