com.marklogic.xcc.types

## Interface XSDuration

- All Superinterfaces:
    XdmAtomic, XdmItem, XdmValue
  All Known Subinterfaces:
    XSDayTimeDuration, XSYearMonthDuration

      public interface XSDuration
      extends XdmAtomic

  XDM type: xs:duration.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `XdmDuration` | `asDuration()`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmItem

      `asInputStream, asReader, getItemType, isCached, writeTo, writeTo`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmValue

      `asString, getValueType`

- - ### Method Detail

    - #### asDuration

          XdmDuration asDuration()

      Returns:
        This item as a XdmDuration objet

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com