Description

The System.TimeSpan structure represents an interval of time with values ranging from System.Int64.MinValue to System.Int64.MaxValue 100-nanosecond ticks.

[Note: The value of a System.TimeSpan is represented internally as a number of 100-nanosecond ticks. Both the specification of a number of ticks and the value of a System.TimeSpan can be positive or negative. A System.TimeSpan can be represented as a string in the format “[–]d.hh:mm:ss.ff” where “–” is an optional sign for negative System.TimeSpan values, the “d” component is days, “hh” is hours, “mm” is minutes, “ss” is seconds, and “ff” is fractions of a second. For example, a System.TimeSpan initialized with 1013 ticks would be represented as “11.13:46:40”, which is 11 days, ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.