@gphone/sdk
    Preparing search index...

    Function useClock

    • The phone's clock, and how it is displayed.

      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. Writable: Settings toggles it.

      • time: Writable<TimeState>

        The current time, updated by the shell.