TI-BASIC Wiki
Advertisement
:SetTime(hour,minute,second)

This sets the hour, minute and second stored on the calculator to the specified date. It returns GetTime after setting the date.

The hour parameter must be greater than or equal to 0 and less than 24. The minute parameter must be greater than or equal to 0 and less than 60. The second parameter must be greater than or equal to 0 and less than 60.

Location[]

  • The catalog

Function[]

:GetTime→L1
:SetTime(1+L1(1),L1(2),L1(3))

This is an error-prone function that increases the hour by one. It is error prone since if the hour is set above 23, this function will refuse to accept the parameter.

Advertisement