[ws][-]{ d | [d.]hh:mm[:ss[.ff]] }[ws]
Items in square brackets ([ and ]) are optional; one selection from the list of alternatives enclosed in braces ({ and }) and separated by vertical bars (|) is required; colons and periods (: and .) are literal characters and required; other items are as follows.
| Item | Description |
|---|---|
| ws | optional white space |
| "-" | optional minus sign indicating a negative TimeSpan |
| d | days, ranging from 0 to 10675199 |
| hh | hours, ranging from 0 to 23 |
| mm | minutes, ranging from 0 to 59 |
| ss | optional seconds, ranging from 0 to 59 |
| ff | optional fractional seconds, consisting of 1 to 7 decimal digits |
The components of s must collectively specify a time interval greater than or equal to MinValue and less than or equal to MaxValue.
days , hours , minutes , but what if it's required to have timespan in a weeks, month , years ?
more...
No comments:
Post a Comment