Skip to content

Time Value Type

Overview

A Time value type specifies a length of time and can be used to perform mathematical functions upon timestamps.

For more information refer to the TimeSpan Structure topic in MSDN.

Definition

A Time value type is defined in the following manner:

text
[ws][sign]d|[d.]hh:mm[:ss[.ff]][ws]
ItemBehaviourDescription
wsOptionalWhite space.
signOptionalMinus sign indicating a negative Time value.
dOptionalDays, ranging from 0 to 10675199.
hhRequiredHours, ranging from 0 to 23.
mmRequiredMinutes, ranging from 0 to 59.
ssOptionalSeconds, ranging from 0 to 59.
ffoptionalFractional seconds, consisting of 1 to 7 decimal digits.

Predefined values

The following is a list of predefined Time values:

Default value0:00
Minimum value-10675199.02:48:05.4775808
Maximum value10675199.02:48:05.4775807

Example values

The following is a list of some Time value conversions:

Time valueLength of time
0:3030 seconds
26:0026 minutes
12:00:0012 hours
12:26:3012 hours, 26 minutes and 30 seconds.

For more information refer to the TimeSpan.Parse Method topic in MSDN.