MarkLogic XCC/.Net Library |

# Duration Constructor

Construct a duration object, initialized to zero length.

#### Overload List

Construct a duration object, initialized to zero length.

> public Duration();

Construct a duration object by specifying the individual values.

> public Duration(bool,int,int,int,int,int,decimal);

Construct a duration object initialized from the given string in the format of a serialized xs:duration item. Examples: P2Y3M141DT12H46M12.34S, -P92M, -P32M2DT0.2S.

> public Duration(string);

#### See Also

Duration Class | Marklogic.Xcc.Types Namespace