Beispiel #1
0
 /// <summary>
 /// Subtracts given <see cref="TimeSpan"/> from <paramref name="originalValue"/> <see cref="DateTime"/> and returns resulting <see cref="DateTime"/> in the past.
 /// </summary>
 public static DateTime Ago(this FluentTimeSpan from, DateTime originalValue)
 {
     return(from.Before(originalValue));
 }
Beispiel #2
0
 /// <summary>
 /// Subtracts given <see cref="FluentTimeSpan"/> from current date (<see cref="DateTime.Now"/>) and returns resulting <see cref="DateTime"/> in the past.
 /// </summary>
 public static DateTime Ago(this FluentTimeSpan from)
 {
     return(from.Before(DateTime.Now));
 }