Pebble App Framework: Phone API
    Preparing search index...

    Function windowOpensAt

    • When a limit that is full now has room again, for a provider that answered RATE LIMIT on its own.

      A clock window opens a second past the next minute, or a minute past the next hour, midnight, or 1st in UTC, since the provider's clock can sit a little behind the phone's. A rolling window opens a second after a call made now ages out, a whole window from now. These are the moments allowance gives for the same limit filled now.

      Parameters

      • limit: QuotaLimit

        The limit.

      • nowMs: number

        Now, in epoch milliseconds.

      Returns number

      When the limit opens, in epoch milliseconds.