internal LocalDate AddTo(LocalDate date, int scalar) => date.PlusYears(Years * scalar) .PlusMonths(Months * scalar) .PlusWeeks(Weeks * scalar) .PlusDays(Days * scalar);
/// <summary> /// Add years.<br /> /// 添加年数。 /// </summary> /// <param name="ld"></param> /// <param name="years"></param> /// <returns></returns> public static LocalDate AddYears(this LocalDate ld, int years) => ld.PlusYears(years);