12.50 TimeSpanSyntax

[patterns]

-?(\d+\.)?\d\d?:\d\d?:((\d\d?)|(\d?\d?\.\d*))

The string may optionally begin with a decimal number and a dot. When present, this optional part indicates the number of days. The string always contains three parts separated by colons. The first two of these are one or two digit numbers specifying hours and minutes. The third part indicates the number of seconds and can be a two-digit integer, or a floating point number with 0, 1, or 2 digits before the point, and any number of digits after the point. Examples:

0:0:1

One second

1.0:0:0

One day

0:0:0.5

Half a second

0:0:.5

Half a second

2.5:2:22

Two days, five hours, two minutes, 22 seconds

[is case sensitive]

true

-?\d+

A decimal number specifying the number of days. Examples:

.

1

One day

10

Ten days

[is case sensitive]

true