Framework-level interface defining an amount of time, such as "6 hours", "8 days" or "2 years and 3 months".

See java.time.temporal for full documentation

Hierarchy

  • TemporalAmount

Methods

  • Adds to the specified temporal object.

    Parameters

    Returns Temporal

  • Returns the value of the requested unit.

    Parameters

    Returns number

  • Returns the list of units uniquely defining the value of this TemporalAmount.

    Returns TemporalUnit[]

  • Subtracts this object from the specified temporal object.

    Parameters

    Returns Temporal

Generated using TypeDoc