Version

TimeSpanFormat Enumeration

Constants which describe the manner in which a TimeSpan is formatted for display.
Syntax
'Declaration
 
Public Enum TimeSpanFormat 
   Inherits System.Enum
public enum TimeSpanFormat : System.Enum 
Members
MemberDescription
DaysThe TimeSpan is formatted as a value which represents the number of days it contains.
HoursThe TimeSpan is formatted as a value which represents the number of hours it contains.
MinutesThe TimeSpan is formatted as a value which represents the number of minutes it contains.
StandardThe TimeSpan is formatted using the default string representation, i.e., the value returned from the TimeSpan's ToString method.
WeeksThe TimeSpan is formatted as a value which represents the number of weeks it contains.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also