com.marklogic.xcc.types

## Interface XdmDuration

- All Known Implementing Classes:
    Duration

      public interface XdmDuration

  A Java representation of xs:duration.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDays()`
    `int` | `getHours()`
    `int` | `getMinutes()`
    `int` | `getMonths()`
    `java.math.BigDecimal` | `getSeconds()`
    `long` | `getWholeSeconds()`
    `int` | `getYears()`
    `boolean` | `isNegative()`
    `boolean` | `isPositive()`

- - ### Method Detail

    - #### isPositive

          boolean isPositive()

    - #### isNegative

          boolean isNegative()

    - #### getYears

          int getYears()

    - #### getMonths

          int getMonths()

    - #### getDays

          int getDays()

    - #### getHours

          int getHours()

    - #### getMinutes

          int getMinutes()

    - #### getWholeSeconds

          long getWholeSeconds()

    - #### getSeconds

          java.math.BigDecimal getSeconds()

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

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