@mica/sdk (SDK contract v1)
    Preparing search index...

    Function useClock

    • The phone's clock, and how it is displayed — read-only. Changing the 12/24-hour preference is useClockWrite (MICA-127).

      Returns {
          formattedTime: Readable<string>;
          is24Hour: Writable<boolean>;
          time: Writable<TimeState>;
      }

      • formattedTime: Readable<string>

        The time already rendered in the player's chosen form.

        Exposed so nothing re-implements the 12/24 branch. The status bar and the Display preview both show a clock, and two formatters would be one preference with two answers.

      • is24Hour: Writable<boolean>

        Whether to render it in 24-hour form. Settings writes it through useClockWrite.

      • time: Writable<TimeState>

        The current time, updated by the shell.