/// <summary> /// Determines if the value of a <see cref="HandCoded.Finance.DateTime"/> is less than /// the value of another. /// </summary> /// <param name="lhs">The <see cref="HandCoded.Finance.DateTime"/> to compare.</param> /// <param name="rhs">The <see cref="HandCoded.Finance.DateTime"/> to compare with.</param> /// <returns><c>true</c> if the first value is less than the second.</returns> public static bool Less(HandCoded.Finance.DateTime lhs, HandCoded.Finance.DateTime rhs) { return(lhs.CompareTo(rhs) < 0); }
/// <summary> /// Compares two <see cref="HandCoded.Finance.DateTime"/> instances to determine if the /// first is equal to or larger than the second. /// </summary> /// <param name="lhs">The first DateTime.</param> /// <param name="rhs">The second DateTime.</param> /// <returns><c>true</c> if the first value is greater than the second.</returns> public static bool GreaterOrEqual(HandCoded.Finance.DateTime lhs, HandCoded.Finance.DateTime rhs) { return(lhs.CompareTo(rhs) >= 0); }
/// <summary> /// Determines if two <see cref="HandCoded.Finance.DateTime"/> values are different. /// </summary> /// <param name="lhs">The <see cref="HandCoded.Finance.DateTime"/> to compare.</param> /// <param name="rhs">The <see cref="HandCoded.Finance.DateTime"/> to compare to.</param> /// <returns><c>true</c> if the two <see cref="DateTime"/> values are different.</returns> public static bool NotEqual(HandCoded.Finance.DateTime lhs, HandCoded.Finance.DateTime rhs) { return(!lhs.Equals(rhs)); }