TI-BASIC Wiki
Advertisement
:GetTmStr(format)

This returns a string containing the time.

format affects how the string is displayed.

  • 0 or 12: 12 hour format plus AM/PM; 8:10 AM
  • 24: 24 hour format; 8:10

Location[]

  • The catalog

Example[]

:Disp GetTmStr(GetTmFmt

This prints the time using the user-decided default format.

See Also[]

  • GetDtStr(, which gives a string containing the date.
  • GetDtFmt returns the date format, as defined by the user.
  • GetTime, returns a list with the time.
  • GetDate, returns a list with the date.
Advertisement