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

    Function phoneDayOf

    • The phone's calendar day at a moment, as YYYY-MM-DD.

      It is the one rule for which day counts as today, so every reader that matches its days against the phone's reads it from here. The offset is passed in, so a reader can also ask for a place's date by passing the place's offset.

      Parameters

      • epochMs: number

        The moment to read the day at.

      • offsetMinutes: number

        The offset from UTC at that moment.

      Returns string

      The day, such as "2026-07-05".