Exemplo n.º 1
0
 /// <summary>
 /// Decrease time
 /// </summary>
 /// <param name="ldt"></param>
 /// <param name="toSubtract"></param>
 /// <returns></returns>
 public static LocalDateTime DecreaseTime(this LocalDateTime ldt, TimeSpan toSubtract) => ldt.Add(-toSubtract);
Exemplo n.º 2
0
 /// <summary>
 /// Increase time
 /// </summary>
 /// <param name="ldt"></param>
 /// <param name="toAdd"></param>
 /// <returns></returns>
 public static LocalDateTime IncreaseTime(this LocalDateTime ldt, TimeSpan toAdd) => ldt.Add(toAdd);