A field of date-time, such as month-of-year or hour-of-minute.

See java.time.temporal for full documentation

Hierarchy

  • TemporalField

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

Generated using TypeDoc