TI-BASIC Wiki
Advertisement
(84) :GetTmFmt
(89) :getTmFmt()

This returns which format the calculator owner prefers time formated. It will return either 12 or 24.

It has two possible values:

  • 12: 12 hour format plus AM/PM; 8:42 AM
  • 24: 24 hour format; 8:42

Location[]

The catalog

Example[]

:Disp "TIME PRINTS AS"
:If GetTmFmt=12:Then
:Disp "12 HOUR FMT"
:Else
:Disp "24 HOUR FMT"

This will determine and print whether the user prefers the date printed in 12 hour format or a 24 hour format.

Advertisement