System.DateTimeOffsetExtensions.IsOlderThan C# (CSharp) Метод

IsOlderThan() публичный статический Метод

public static IsOlderThan ( this self, System.TimeSpan age ) : bool
self this
age System.TimeSpan
Результат bool
        public static bool IsOlderThan(this DateTimeOffset self, TimeSpan age)
        {
            return (DateTimeOffset.UtcNow - self) > age;
        }
DateTimeOffsetExtensions