
-----------------------------------
timothyleesnipe
Wed May 15, 2013 9:46 am

How to make an alarm clock
-----------------------------------
Hey guys we can use the ( timeOfDay) feature on turing to ecract the time from the computer into our program, however it stays the same it does not move forward like a clock. how do we make it into an actual fully operating clock? better yet an alarm clock thae need for a comp sci project? please and thank you lol

-----------------------------------
jr5000pwp
Wed May 15, 2013 10:45 am

Re: How to make an alarm clock
-----------------------------------
however it stays the same it does not move forward like a clockWhat do you mean by this? If you are only getting the value once then of course it's not going to change on you. Look into loops: http://compsci.ca/holtsoft/doc/loop.html and delays: http://compsci.ca/holtsoft/doc/time_delaysincelast.html
It appears as if this document: http://compsci.ca/holtsoft/doc/time_date.html shows you how to get the time portion of the date, combine the 3 things I linked and you have a clock.

-----------------------------------
Raknarg
Wed May 15, 2013 5:53 pm

RE:How to make an alarm clock
-----------------------------------

loop
    put Time.Date
    Time.DelaySinceLast (1000)
    cls
end loop


Yes

-----------------------------------
timothyleesnipe
Thu May 16, 2013 8:53 am

Re: How to make an alarm clock
-----------------------------------
sorry man im used to generators in java (netbeans) lol i just thought the feature applied for turing too
