/// <summary> /// Determines whether the specified destination is before. /// </summary> /// <param name="source">The source.</param> /// <param name="destination">The destination.</param> /// <param name="redundancy">The redundancy.</param> /// <returns><c>true</c> if the specified destination is before; otherwise, <c>false</c>.</returns> public static bool IsBefore(this DateTime source, DateTime destination, TimeSpan redundancy) { return(DateTimeUtility.IsBefore(source, destination, redundancy)); }
/// <summary> /// Determines whether the specified destination is before. /// </summary> /// <param name="source">The source.</param> /// <param name="destination">The destination.</param> /// <returns><c>true</c> if the specified destination is before; otherwise, <c>false</c>.</returns> public static bool IsBefore(this DateTime source, DateTime destination) { return(DateTimeUtility.IsBefore(source, destination)); }
/// <summary> /// Determines whether [is after or equal] [the specified destination]. /// </summary> /// <param name="source">The source.</param> /// <param name="destination">The destination.</param> /// <param name="redundancy">The redundancy.</param> /// <returns><c>true</c> if [is after or equal] [the specified destination]; otherwise, <c>false</c>.</returns> public static bool IsAfterOrEqual(this DateTime source, DateTime destination, TimeSpan redundancy) { return(DateTimeUtility.IsAfterOrEqual(source, destination, redundancy)); }
/// <summary> /// Determines whether [is after or equal] [the specified destination]. /// </summary> /// <param name="source">The source.</param> /// <param name="destination">The destination.</param> /// <returns><c>true</c> if [is after or equal] [the specified destination]; otherwise, <c>false</c>.</returns> public static bool IsAfterOrEqual(this DateTime source, DateTime destination) { return(DateTimeUtility.IsAfterOrEqual(source, destination)); }
/// <summary> /// Gets the unix timestamp of the specified date time. /// </summary> /// <param name="dateTime">The date time.</param> /// <returns>System.Int64.</returns> public static long UnixTimestamp(this DateTime dateTime) { return(DateTimeUtility.GetUnixTimestamp(dateTime)); }
/// <summary> /// Gets the JS datetime of the specified date time. /// </summary> /// <param name="dateTime">The date time.</param> /// <returns>System.Int64.</returns> public static long JSDate(this DateTime dateTime) { return(DateTimeUtility.GetJSDate(dateTime)); }