Std time timespan
Struct TimeSpan#
TimeSpan class.
A time span represents the difference between 2 times. A time span can also be thought of as 'duration' or 'interval'.
Time spans are produced by subtracting times, and can be added to times to produce new times that are 'in the future' or 'in the past'.
Internally, a timespan is represented by a single signed 64 bit ticks value. A tick is 1 ten millionth of a second.
Consts | |
---|---|
TicksPerDay | |
TicksPerHour | |
TicksPerMillisec | |
TicksPerMinute | |
TicksPerSecond |
Constructors | |
---|---|
New | Creates a new TimeSpan |
Properties | |
---|---|
Days | Days in the time span. (read only) |
Hours | Hours in the time span. (read only) |
Millisecs | Millisecs in the time span. (read only) |
Minutes | Minutes in the time span. (read only) |
Seconds | Seconds in the time span. (read only) |
Ticks | Ticks in the time span. (read only) |
TotalDays | Total days in the time span. (read only) |
TotalHours | Total hours in the time span. (read only) |
TotalMillisecs | Total milliseconds in the time span. (read only) |
TotalMinutes | Total minutes in the time span. (read only) |
TotalSeconds | Total seconds in the time span. (read only) |
Methods | |
---|---|
Operator To | Converts the time span to a string. |