src/Period.php
public static function of(int $years, int $months, int $days) : Period
    {
        return new Period($years, $months, $days);
    }
public static function of(int $years, int $months, int $days) : Period
    {
        return new Period($years, $months, $days);
    }
public static function of ( int $ years , int $ months , int $ days ) : Period { return new Period ( $ years , $ months , $ days ) ; }
Creates a Period based on years, months, days, hours, minutes and seconds.

@param int $years  The number of years.
@param int $months The number of months.
@param int $days   The number of days.

@return Period
Creates a Period based on years months days hours minutes and seconds .