Bluestep JS Documentation
    Preparing search index...

    Interface TemporalAmount

    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

    interface TemporalAmount {
        addTo(temporal: Temporal): Temporal;
        get(unit: TemporalUnit): number;
        getUnits(): TemporalUnit[];
        subtractFrom(temporal: Temporal): Temporal;
    }
    Index

    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