public static Period Neg(Period periodToNegate)
 {
     if (periodToNegate == null)
     {
         throw new ArgumentNullException("periodToNegate");
     }
     return(periodToNegate.Negative());
 }
 public static DateTime Sub(DateTime dateTime, Period periodToSubtract)
 {
     if (periodToSubtract == null)
     {
         throw new ArgumentNullException("periodToSubtract");
     }
     return(periodToSubtract.Negative().Add(dateTime));
 }
Beispiel #3
0
 public static DateTime Subtract(this Period thisPeriod, DateTime dateToStartAt)
 {
     return(thisPeriod.Negative().Add(dateToStartAt));
 }