Computer Science Canada Digital Clock |
Author: | shabz_shabz [ Mon Jun 11, 2007 7:27 pm ] |
Post subject: | Digital Clock |
hi.. i made a remote control interface fr my class project.. and i have evrything done but i need to know if there is any kind of turing code so that i can see digital time while running my program . so i can have the same time showin in the turing program as my pc. pls let me know if u want i can upload my turing program as well.. Thanks |
Author: | Clayton [ Mon Jun 11, 2007 7:45 pm ] |
Post subject: | RE:Digital Clock |
Searching the Turing Documentation for time I came across the procedure (drum roll), time(). While I don't like procedures that modify your variables on you, I can't see any other function that returns just the time, but there is Time.Date if you want to look at that. |
Author: | shabz_shabz [ Mon Jun 11, 2007 8:12 pm ] |
Post subject: | RE:Digital Clock |
var theDateTime, theDate, theTime : string theDateTime := Time.Date theDate := theDateTime (1 .. 9) theTime := theDateTime (11 .. *) put "Greetings!! The date and time today is ", Time.Date but thas just shows if u run the program.. i want the time to keep running at the top - or whever i place it .. i want a digital clock running forever changin each sec .. u noe wht i mean.. i want a digital clock to appear which has the same time as my pc |
Author: | Clayton [ Mon Jun 11, 2007 8:17 pm ] | ||
Post subject: | RE:Digital Clock | ||
Do you mean in the titlebar?
|
Author: | shabz_shabz [ Mon Jun 11, 2007 8:22 pm ] | ||||
Post subject: | Re: Digital Clock | ||||
Thanks alot for your quick responses. But how am i going to use that ? this is my code as follows
And yea that might work too, time and date in the title bar . but how? please guide me . im really lost. ANd yea, if you can give me feedback too for my program it wuld be great. if u want to check download and open the file - " 222222newnewnew.t " download http://www.megaupload.com/?d=Y0DELJ7D I wuld be very delighted if u can check my program and giive me feedback as well Thanks |
Author: | shabz_shabz [ Mon Jun 11, 2007 8:37 pm ] |
Post subject: | RE:Digital Clock |
http://www.megaupload.com/?d=Y0DELJ7D here , this is the rite one . i posted the wrong link earlier.. i posting this link again even tho i edited it in my previous post. Waiting for replies Thanks alot |