Bluestep JS Documentation
    Preparing search index...

    Interface TemporalUnit

    A unit of date-time, such as Days or Hours.

    See java.time.temporal for full documentation

    interface TemporalUnit {
        addTo<R extends Temporal>(temporal: R, amount: number): R;
        between(temporal1Inclusive: Temporal, temporal2Exclusive: Temporal): number;
        getDuration(): Duration;
        isDateBased(): boolean;
        isDurationEstimated(): boolean;
        isSupportedBy(temporal: Temporal): boolean;
        isTimeBased(): boolean;
    }

    Implemented by

    Index

    Methods

    • Returns a copy of the specified temporal object with the specified period added.

      Type Parameters

      Parameters

      • temporal: R
      • amount: number

      Returns R

    • Calculates the amount of time between two temporal objects.

      Parameters

      Returns number

    • Gets the duration of this unit, which may be an estimate.

      Returns Duration

    • Checks if this unit represents a component of a date.

      Returns boolean

    • Checks if the duration of the unit is an estimate.

      Returns boolean

    • Checks if this unit is supported by the specified temporal object.

      Parameters

      Returns boolean

    • Checks if this unit represents a component of a time.

      Returns boolean