Time And Date Commands

The OS version 2.07 update introduced several commands for dealing with times and dates. Some of these rely on the built-in clock, while others are used for formatting.

TI-84+ programmers will not find many differences in function here — these commands were added to both calculator series at the same time, and are almost exactly the same. The only difference is the addition of the getTmZn() and setTmZn() commands, and the absence of a days-between-dates command.

Low-Level Commands

  • startTmr() — This command returns the current value of a timer that is updated every second when the clock is enabled. This value doesn't correspond to any actual time, but can be used with checkTmr() to get a time difference.
  • checkTmr() — checkTmr(t) is equivalent to startTmr()-t. This can be used to get the time elapsed since startTmr was used.
  • ClockOn, ClockOff — Enables or disables the hardware clock.
  • isClkOn() — Tests if the clock is enabled or not.

Time Commands

  • setTime() — Sets the current time, in hours, minutes, and seconds. If the clock is enabled, this time will be updated every second.
  • getTime() — Returns the current time as the list {hours, minutes, seconds}. This command is unaffected by time format.
  • setTmFmt() — Sets the time format - 12 hour, or 24 hour.
  • getTmFmt() — Returns this time format setting.
  • getTmStr() — Returns the current time as a string, affected by time format (though you can override it with an optional argument).
  • setTmZn() — Sets the current time zone, as an offset (in minutes) from GMT.
  • getTmZn() — Returns the current time zone.

Date Commands

  • setDate() — Sets the current date (year, month, and day). If the clock is enabled, this date will be updated as needed.
  • getDate() — Returns the current date as the list {year, month, day}. This command is unaffected by date format.
  • setDtFmt() — Sets the date format - 1 for month/day/year, 2 for day/month/year, or 3 for year/month/day.
  • getDtFmt() — Returns this date format setting.
  • getDtStr() — Returns the current date as a string, affected by date format (though you can override it with an optional argument).

Time/Date Manipulation

  • timeCnv() — Converts a number of seconds into a list of {days, hours, minutes, seconds} representing the same time lapse.
  • dayOfWk() — Returns the day of week (Sunday through Saturday encoded as 1 through 7) of a specified date.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.