/// <summary> /// Set time /// </summary> /// <param name="ldt"></param> /// <param name="lt"></param> /// <returns></returns> public static LocalDateTime SetTime(this LocalDateTime ldt, LocalTime lt) => ldt.SetTime(lt.Hour, lt.Minute, lt.Second, lt.Millisecond);
/// <summary> /// Noon /// </summary> /// <param name="ldt"></param> /// <returns></returns> public static LocalDateTime Noon(this LocalDateTime ldt) => ldt.SetTime(12, 0, 0, 0);
/// <summary> /// At /// </summary> /// <param name="ldt"></param> /// <param name="hour"></param> /// <param name="minute"></param> /// <param name="second"></param> /// <param name="milliseconds"></param> /// <returns></returns> public static LocalDateTime At(this LocalDateTime ldt, int hour, int minute, int second, int milliseconds) => ldt.SetTime(hour, minute, second, milliseconds);