Пример #1
0
 /// <summary>
 /// Beginning of year
 /// </summary>
 /// <param name="ld"></param>
 /// <param name="timeZoneOffset"></param>
 /// <returns></returns>
 public static LocalDateTime BeginningOfYear(this LocalDateTime ld, int timeZoneOffset) => ld.FirstDayOfYear().BeginningOfDay(timeZoneOffset);
Пример #2
0
 /// <summary>
 /// Beginning of year
 /// </summary>
 /// <param name="ld"></param>
 /// <returns></returns>
 public static LocalDateTime BeginningOfYear(this LocalDateTime ld) => ld.FirstDayOfYear().BeginningOfDay();