TimeSpan.GreaterThan Operator (TimeSpan, TimeSpan)


Indicates whether a specified TimeSpan is greater than another specified TimeSpan.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

static let inline (>)
        t1:TimeSpan *
        t2:TimeSpan : bool


Type: System.TimeSpan

The first time interval to compare.

Type: System.TimeSpan

The second time interval to compare.

Return Value

Type: System.Boolean

true if the value of t1 is greater than the value of t2; otherwise, false.

The following example compares several TimeSpan objects to a reference TimeSpan using the GreaterThan operator.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft