MarkLogic XCC/.Net Library

Duration Constructor (Boolean, Int32, Int32, Int32, Int32, Int32, Decimal)

Construct a duration object by specifying the individual values.

[Visual Basic]
Overloads Public Sub New( _
   ByVal negative As Boolean, _
   ByVal years As Integer, _
   ByVal months As Integer, _
   ByVal days As Integer, _
   ByVal hours As Integer, _
   ByVal minutes As Integer, _
   ByVal seconds As Decimal _
)
[C#]
public Duration(
   bool negative,
   int years,
   int months,
   int days,
   int hours,
   int minutes,
   decimal seconds
);

Parameters

negative
Pass true if the duration should be neagtive, otherwise false.
years
The number of years.
months
The number of months.
days
The number of days.
hours
The number of hours.
minutes
The number of minutes.
seconds
The (possibly fractional) number of seconds. Note that this is specified by a Decimal object. If null, a value of zero is assumed.

See Also

Duration Class | Marklogic.Xcc.Types Namespace | Duration Constructor Overload List