/// <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 DateTimeOffset Ago(this FluentTimeSpan from, DateTimeOffset originalValue) { return(from.Before(originalValue)); }
/// <summary> /// Subtracts given <see cref="FluentTimeSpan"/> from current date (<see cref="DateTimeOffset.Now"/>) and returns resulting <see cref="DateTime"/> in the past. /// </summary> public static DateTimeOffset Ago(this FluentTimeSpan from) { return(from.Before(DateTimeOffset.Now)); }