iya-sts
    Preparing search index...

    The limits vocabulary of an access right (#432 phase 5): what each member means, whether a limit is well formed, whether one limit is LOWER than another, and which period of a repeating interval a time falls in.

    Index
    FRACTION_DIGITS: 6 = FRACTION_DIGITS

    The fraction digits an amount may carry.

    MEMBERS: string[] = MEMBERS

    The members with a meaning, in display order.

    • The instant k durations after start, calendar months first.

      Parameters

      • start: number

        seconds since the epoch

      • duration: Duration

        the duration

      • k: number

        how many durations

      Returns number

      seconds since the epoch

    • Writes millionths back as the shortest decimal string.

      Parameters

      • units: bigint

        the amount in millionths

      Returns string

      the decimal string

    • Reads an ISO 8601 duration of whole units into calendar months and fixed seconds.

      Parameters

      • text: any

        the duration, such as P1M or PT12H

      Returns Duration

      { months, seconds }, or null when it is not a positive one

    • Reads an ISO 8601 repeating interval in its R[n]/start/duration form.

      Parameters

      • text: any

        the interval

      Returns Interval

      the repetitions (null: unbounded), the start in seconds and the duration, or null when it is not one

    • Finds the period of a repeating interval a time falls in.

      Parameters

      • interval: any

        the interval, as intervalOf() reads it (or its text)

      • now: number

        seconds since the epoch

      Returns any

      { index, start, end }, or { outside: 'before' | 'after' }

    • Checks the members of a limits object that carry a meaning.

      Parameters

      • limits: any

        the limits member

      Returns string

      the problem as a sentence, or ''

    • Says whether one set of limits is no more than another.

      Parameters

      • original: any

        the limits as requested or as granted (or undefined)

      • proposed: any

        the limits asked for in their place (or undefined)

      Returns string

      '' when proposed is equal or lower, or the sentence naming the member it raises

    • The receivers a limit names, as a list, or null when it names none.

      Parameters

      • limits: any

        the limits member

      Returns string[]

      the receivers, or null

    • Describes limits for a person, one row per member.

      Parameters

      • limits: any

        the limits member

      Returns any[]

      [{ member, label, value }]

    • Reads an RFC 3339 date-time with its offset, in seconds.

      Parameters

      • text: any

        the date-time

      Returns number

      seconds since the epoch, or null

    • Reads a decimal amount as millionths.

      Parameters

      • value: any

        a decimal string, or a non-negative finite number

      Returns bigint

      the amount in millionths, or null when it is not one