Пример #1
0
 /// <summary>
 /// Add quarters
 /// </summary>
 /// <param name="ld"></param>
 /// <param name="quarters"></param>
 /// <returns></returns>
 public static LocalDateTime AddQuarters(this LocalDateTime ld, int quarters) => ld.PlusMonths(quarters * 3);
Пример #2
0
 public LocalDate PlusMonths(int months)
 {
     return(new LocalDate(localTime.PlusMonths(months)));
 }
Пример #3
0
 /// <summary>
 /// Add months
 /// </summary>
 /// <param name="ld"></param>
 /// <param name="months"></param>
 /// <returns></returns>
 public static LocalDateTime AddMonths(this LocalDateTime ld, int months) => ld.PlusMonths(months);