Windows apps
Collapse the table of content
Expand the table of content

Seconds Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the seconds component of the time interval represented by the current TimeSpan structure.

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

public int Seconds { get; }

Property Value

Type: System..::..Int32
The second component of the current TimeSpan structure. The return value ranges from -59 through 59.

A TimeSpan value can be represented as [-]d.hh:mm:ss.ff, where the optional minus sign indicates a negative time interval, the d component is days, hh is hours as measured on a 24-hour clock, mm is minutes, ss is seconds, and ff is fractions of a second. The value of the Seconds property is the seconds component, ss.

Show:
© 2017 Microsoft