ServiceStack.Text.DateTimeExtensions.IsEqualToTheSecond C# (CSharp) Method

IsEqualToTheSecond() public static method

public static IsEqualToTheSecond ( this dateTime, System.DateTime otherDateTime ) : bool
dateTime this
otherDateTime System.DateTime
return bool
        public static bool IsEqualToTheSecond(this DateTime dateTime, DateTime otherDateTime)
        {
            return dateTime.ToStableUniversalTime().RoundToSecond().Equals(otherDateTime.ToStableUniversalTime().RoundToSecond());
        }