MarkLogic XCC/.Net Library

Duration Members

Duration overview

Public Instance Constructors

Duration Overloaded. Initializes a new instance of the Duration class.

Public Instance Properties

Days The number of days in this Duration.
Hours The number of hours in this Duration.
Minutes The number of minutes in this Duration.
Months The number of months in this Duration.
Negative True if this is a negative Duration.
Positive True if this is a positive Duration.
Seconds The number of seconds, possibly a fractional value, in this Duration.
Sign The sign of this duration. True indicates negative, false means positive (the default).
WholeSeconds The number of whole seconds in this Duration.
Years The number of years in this Duration.

Public Instance Methods

Equals Compares this XdmDuration object to the specified object. The result is true if and only if the argument is not null and the sign, year, month, day, hours, minutes, seconds and subseconds values have the same value as this object.
GetHashCode The hashcode for this Duration.
GetType (inherited from Object) 
ToString Formats this duration object as a String in the format prescribed in the W3C description of XML datatypes for a duration.
Example: -P2Y4M5DT3H5M42.057S
Represents a duration of minus 2 years, 4 months, 5 days, 3 hours, 5 minutes, and 42.0575 seconds.

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

Duration Class | Marklogic.Xcc.Types Namespace