| 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