ServiceStack.Text.DateTimeExtensions.IsEqualToTheSecond C# (CSharp) 메소드

IsEqualToTheSecond() 공개 정적인 메소드

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