Exemple #1
0
 /// <summary>
 /// Beginning of week
 /// </summary>
 /// <param name="ld"></param>
 /// <param name="timeZoneOffset"></param>
 /// <returns></returns>
 public static LocalDateTime BeginningOfWeek(this LocalDateTime ld, int timeZoneOffset) => ld.FirstDayOfWeek().BeginningOfDay(timeZoneOffset);
Exemple #2
0
 /// <summary>
 /// Gets last day of week
 /// </summary>
 /// <param name="ldt"></param>
 /// <returns></returns>
 public static LocalDateTime LastDayOfWeek(this LocalDateTime ldt) => ldt.FirstDayOfWeek().AddDays(6);
Exemple #3
0
 /// <summary>
 /// Beginning of week
 /// </summary>
 /// <param name="ld"></param>
 /// <returns></returns>
 public static LocalDateTime BeginningOfWeek(this LocalDateTime ld) => ld.FirstDayOfWeek().BeginningOfDay();