TimeSpanStyles Enumeration

TimeSpanStyles Enumeration


Defines the formatting options that customize string parsing for the TimeSpan.ParseExact and TimeSpan.TryParseExact methods.

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

public enum TimeSpanStyles

Member nameDescription

Indicates that input is always interpreted as a negative time interval.


Indicates that input is interpreted as a negative time interval only if a negative sign is present.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft