This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Author Message
Jaker48895


Newbie


Joined: 31 Mar 2009
Posts: 3

Posted: 31 Mar 2009 08:24:47 pm    Post subject:

I have been messing around with a regular TI-89 for some time now and recently i have tried to make a stopwatch program. I know that the TI-84 have multiple time functions, but i couldn't find anything on the TI-89 pertaining to time. Is there a time function at all on the TI-89?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 31 Mar 2009 08:34:20 pm    Post subject:

Depends on if you have a HW2 calculator or not (you probably do). Make sure your calculator is updated to a recent OS version, and try a command like getTime().
Back to top
Jaker48895


Newbie


Joined: 31 Mar 2009
Posts: 3

Posted: 04 Apr 2009 02:43:56 pm    Post subject:

Sorry, i don't know what you mean by an "HW2" calculator. When i run the command getTime() it just appears on screen. Should i try and update the OS from the TI-site?

Thanks for your help!


Last edited by Guest on 04 Apr 2009 03:18:19 pm; edited 1 time in total
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 04 Apr 2009 05:14:27 pm    Post subject:

It means your hardware version, which should show up on the About screen if I remember correctly. It can't be upgraded because, well, it's the hardware. Razz
Back to top
Jaker48895


Newbie


Joined: 31 Mar 2009
Posts: 3

Posted: 04 Apr 2009 06:44:20 pm    Post subject:

I did a little bit more research and the Version 2.05 (the version i have) can be upgraded to Version 2.09 which does have time functions!

thanks!
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 02:11:28 pm    Post subject:

Just a quick note:
The TI-84+ clock doesn't actually keep correct track of the time, does it? I mean, it couldn't because of the varying battery strength, which would cause varying OS (and clock) speeds, right?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 10 Apr 2009 03:58:18 pm    Post subject:

The battery strength does, to a degree, affect the OS speed, but not the clock speed. So the clock is more-or-less accurate (it's not perfect, it's off by maybe a minute over several months, but pretty dang good). The problem is that I think it resets every time the RAM clears?
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 04:05:15 pm    Post subject:

DarkerLine wrote:
The battery strength does, to a degree, affect the OS speed, but not the clock speed. So the clock is more-or-less accurate (it's not perfect, it's off by maybe a minute over several months, but pretty dang good). The problem is that I think it resets every time the RAM clears?

Yup yup yup. That was the problem I kept having. Every now and then, I'd glance at the clock on my calculator, and after figuring that it wasnt October 17, 1984, at 4:00AM, I reset it to the correct date/time. But, since I frequently am clearing my RAM to get excess junk from programs out of there, I guess it resets every time. That makes sense.

Do you know how the calculator keeps track of the time?


Last edited by Guest on 10 Apr 2009 04:06:31 pm; edited 1 time in total
Back to top
darkstone knight


Advanced Member


Joined: 07 Sep 2008
Posts: 438

Posted: 10 Apr 2009 04:07:59 pm    Post subject:

well, the newest OS keeps time...

but what if the time is corrupt? ehh...
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 04:10:23 pm    Post subject:

What do ya mean "corrupt"?
Back to top
darkstone knight


Advanced Member


Joined: 07 Sep 2008
Posts: 438

Posted: 10 Apr 2009 04:11:48 pm    Post subject:

what if the var that holds the time holds someting that is illegal, like month 13..
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 04:22:34 pm    Post subject:

ohh...how wouuld that occur, though? That would most likely mean that your calculator is defective...did that happen to you?
Back to top
darkstone knight


Advanced Member


Joined: 07 Sep 2008
Posts: 438

Posted: 10 Apr 2009 04:28:59 pm    Post subject:

uhh... no, but its pretty easy to do whit asm..
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 04:31:19 pm    Post subject:

oh, I thought you meant when you received the calculator. But uh...ya, I wonder what the OS would do at that point...I'm thinking it would crash the second it goes to update the variable.
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 10 Apr 2009 04:31:43 pm    Post subject:

TKD_01 wrote:
ohh...how wouuld that occur, though? That would most likely mean that your calculator is defective...did that happen to you?

If you find the location where the data for that particular variable is held you could modify it (with something like CalcSys).

[edit] When I went to try screwing with the time on an 84+SE I found something interesting. Time is kept track of in ports 41h-44h/45h-48h as a 32-bit number, which is the number of seconds since January 1, 1997. There's no variable for year/month/day/etc., so you can't 'corrupt' it by setting illegal values to it.


Last edited by Guest on 10 Apr 2009 05:14:16 pm; edited 1 time in total
Back to top
darkstone knight


Advanced Member


Joined: 07 Sep 2008
Posts: 438

Posted: 10 Apr 2009 05:36:37 pm    Post subject:

drat, my evil plans failed Sad
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 08:35:05 pm    Post subject:

haha, oops Wink
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 08:43:05 pm    Post subject:

simplethinker wrote:
TKD_01 wrote:
ohh...how wouuld that occur, though? That would most likely mean that your calculator is defective...did that happen to you?

If you find the location where the data for that particular variable is held you could modify it (with something like CalcSys).

[edit] When I went to try screwing with the time on an 84+SE I found something interesting. Time is kept track of in ports 41h-44h/45h-48h as a 32-bit number, which is the number of seconds since January 1, 1997. There's no variable for year/month/day/etc., so you can't 'corrupt' it by setting illegal values to it.

Really? So what does the clock get reset to every time the RAM clears? Back to January 1, 1997?


Last edited by Guest on 10 Apr 2009 08:44:03 pm; edited 1 time in total
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 10 Apr 2009 09:01:04 pm    Post subject:

TKD_01 wrote:
Really? So what does the clock get reset to every time the RAM clears? Back to January 1, 1997?

1/1/1997 is the minimum date it can be set to. For some reason my calculator doesn't want to reset the date/time when I'm resetting the RAM, so I'm not sure what the default value is (strange, ain't it :confused:)
Back to top
TKD_01


Advanced Newbie


Joined: 20 Feb 2009
Posts: 51

Posted: 10 Apr 2009 09:18:25 pm    Post subject:

simplethinker wrote:
1/1/1997 is the minimum date it can be set to. For some reason my calculator doesn't want to reset the date/time when I'm resetting the RAM, so I'm not sure what the default value is (strange, ain't it :confused:)

Ahha! I got it! Ya, my clock didn't reset when I reset my RAM manually, either. However, I went into one of my programs and crashed it on purpose (don't ask Neutral ), and the clock was reset. I have no clue why it does that. Do you know if a separate part of RAM is reset when you crash a program??

EDIT:
Also, when the clock is "reset", it goes back to January 1, 2001, at 12:00AM. :confused:


Last edited by Guest on 10 Apr 2009 09:22:20 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are UTC - 5 Hours

 

Advertisement