Esempio n. 1
0
 public LocalDate PlusYears(int years)
 {
     return(new LocalDate(localTime.PlusYears(years)));
 }
Esempio n. 2
0
 /// <summary>
 /// Add years
 /// </summary>
 /// <param name="ld"></param>
 /// <param name="years"></param>
 /// <returns></returns>
 public static LocalDateTime AddYears(this LocalDateTime ld, int years) => ld.PlusYears(years);