Aspectacular.DateTimeExtensions.IsUtc C# (CSharp) Method

IsUtc() public static method

Returns true if DateTimeOffset represents UTC time.
public static IsUtc ( this dto ) : bool
dto this
return bool
        public static bool IsUtc(this DateTimeOffset dto)
        {
            return dto.Offset.Ticks == 0;
        }