http://learn.cemetech.net/index.php?title=TI-BASIC:Time_And_Date&feed=atom&action=historyTI-BASIC:Time And Date - Revision history2024-03-28T15:15:05ZRevision history for this page on the wikiMediaWiki 1.34.0http://learn.cemetech.net/index.php?title=TI-BASIC:Time_And_Date&diff=546&oldid=prevMaintenance script: Initial automated import2016-02-24T18:06:41Z<p>Initial automated import</p>
<p><b>New page</b></p><div>The TI-84 Plus and TI-84 Plus SE, which have a built-in hardware clock, introduce several commands for dealing with time. Some of these rely on the built-in clock, while others are used for formatting times and dates and could technically have been introduced on earlier calculators. However, the only time/date command that is available on the pre-84 calculators is [[TI-BASIC:Dbd|Dbd(]].<br />
<br />
All of these commands except dbd( can be found only through the command catalog (2nd CATALOG). [[TI-BASIC:Dbd|Dbd(]] can also be found in the Finance menu -- 2nd FINANCE on the TI-83, and APPS 1:Finance... on the TI-83+ or higher.<br />
<br />
Despite its name, the [[TI-BASIC:Time|Time]] command has nothing to do with the clock. It is a mode setting for sequence graphs.<br />
<br />
<div style="float:left; width: 45%; padding: 0 2%"><br />
<br />
== Low-Level Commands ==<br />
<br />
* '''[[TI-BASIC:Starttmr|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 [[TI-BASIC:Checktmr|CheckTmr(]] to get a time difference.<br />
* '''[[TI-BASIC:Checktmr|CheckTmr(]]''' -- checkTmr(X) is equivalent to [[TI-BASIC:Starttmr|StartTmr]]-X. This can be used to get the time elapsed since startTmr was used.<br />
* '''[[TI-BASIC:Clockon|ClockOn]]''', '''[[TI-BASIC:Clockoff|ClockOff]]''' -- Enables or disables the hardware clock.<br />
* '''[[TI-BASIC:Isclockon|IsClockOn]]''' -- Tests if the clock is enabled or not.<br />
<br />
== Time Commands ==<br />
<br />
* '''[[TI-BASIC:Settime|SetTime(]]''' -- Sets the current time, in hours, minutes, and seconds. If the clock is enabled, this time will be updated every second.<br />
* '''[[TI-BASIC:Gettime|GetTime]]''' -- Returns the current time as the list {hours, minutes, seconds}. This command is unaffected by time format.<br />
* '''[[TI-BASIC:Settmfmt|SetTmFmt(]]''' -- Sets the time format - 12 hour, or 24 hour.<br />
* '''[[TI-BASIC:Gettmfmt|GetTmFmt]]''' -- Returns this time format setting.<br />
* '''[[TI-BASIC:Gettmstr|GetTmStr(]]''' -- Returns the current time as a string, affected by time format (though you can override it with an optional argument).<br />
<br />
</div><br />
<br />
<div style="float:left; width: 45%; padding: 0 2%"><br />
<br />
== Date Commands ==<br />
<br />
* '''[[TI-BASIC:Setdate|SetDate(]]''' -- Sets the current date (year, month, and day). If the clock is enabled, this date will be updated as needed.<br />
* '''[[TI-BASIC:Getdate|GetDate]]''' -- Returns the current date as the list {year, month, day}. This command is unaffected by date format.<br />
* '''[[TI-BASIC:Setdtfmt|SetDtFmt(]]''' -- Sets the date format - 1 for month/day/year, 2 for day/month/year, or 3 for year/month/day.<br />
* '''[[TI-BASIC:Getdtfmt|GetDtFmt(]]''' -- Returns this date format setting.<br />
* '''[[TI-BASIC:Getdtstr|GetDtStr(]]''' -- Returns the current date as a string, affected by date format (though you can override it with an optional argument).<br />
<br />
== Time/Date Manipulation ==<br />
<br />
* '''[[TI-BASIC:Timecnv|TimeCnv(]]''' -- Converts a number of seconds into a list of {days, hours, minutes, seconds} representing the same time lapse.<br />
* '''[[TI-BASIC:Dayofwk|DayOfWk(]]''' -- Returns the day of week (Sunday through Saturday encoded as 1 through 7) of a specified date.<br />
* '''[[TI-BASIC:Dbd|Dbd(]]''' -- Returns the number of days between two dates -- this command is available on all calculators, not just the 84+/SE.<br />
<br />
</div>[[Category:TI-BASIC]]<br />
[[Category:TIBD]]</div>Maintenance script