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

    Function keepSent

    • The stamps worth keeping. One older than a day is let go. One in the future, after the phone's clock stepped back, counts as sent now rather than being dropped, so the count can never shrink because the clock moved, and it still clears within a day.

      Parameters

      • sentMs: number[]

        The stamps, in epoch milliseconds.

      • nowMs: number

        Now, in epoch milliseconds.

      Returns number[]

      The stamps of the last day, oldest first.