Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 need someonone to make a countdown timer <any language>
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ecookman




PostPosted: Mon Dec 08, 2008 5:14 pm   Post subject: need someonone to make a countdown timer <any language>

ya so said my friend wants a countdown timer for Christmas. sooo to satisfy them i have come here looking for some brains (not literally)


so if someone could make a countdown timer that can count down from the computers time and date until Christmas eve that wold be lovely.



preferably using turing or VB...because they are the only languages i know...so i can modify them if needed


if it is made in turing or vb please send the code too ( i have vb 2008 express 2008 and vb complete studio 2005)
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Dec 08, 2008 5:49 pm   Post subject: Re: need someonone to make a countdown timer <any language>

seriously?

Ruby:

tony$ script/console
Loading development environment (Rails 2.1.2)
>> include ActionView::Helpers::TextHelper
=> Object
>> puts "There are #{pluralize((Date.new(2008,12,24) - Date.today).to_i, 'day')} left until Xmas Eve"
There are 16 days left until Xmas Eve
=> nil
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ecookman




PostPosted: Mon Dec 08, 2008 5:52 pm   Post subject: RE:need someonone to make a countdown timer <any language>

it is really that simple
well i have never seen ruby soo



and also...I have never played with timers in either language


further more

i don't have a ruby compiler...is it possible to make it into a .exe?
gianni




PostPosted: Mon Dec 08, 2008 5:53 pm   Post subject: Re: need someonone to make a countdown timer <any language>

ecookman @ Mon Dec 08, 2008 5:14 pm wrote:
preferably using turing or VB...because they are the only languages i know


If you know these languages why don't you just write a countdown timer? I mean ... you already know the language ... right?
ecookman




PostPosted: Mon Dec 08, 2008 5:56 pm   Post subject: Re: RE:need someonone to make a countdown timer <any language>

as tony said:

seriously?

read before you post

ecookman @ Mon Dec 08, 2008 5:52 pm wrote:


and also...I have never played with timers in either language
gianni




PostPosted: Mon Dec 08, 2008 5:58 pm   Post subject: Re: RE:need someonone to make a countdown timer <any language>

ecookman @ Mon Dec 08, 2008 5:56 pm wrote:
as tony said:

seriously?

read before you post

ecookman @ Mon Dec 08, 2008 5:52 pm wrote:


and also...I have never played with timers in either language


I think someone should take a bit of their own advice. *WINK*

Also, good reading: http://compsci.ca/blog/you-dont-know-that-programming-language/
ecookman




PostPosted: Mon Dec 08, 2008 6:02 pm   Post subject: RE:need someonone to make a countdown timer <any language>

i really don't know what you are talking about..if it is a spelling error i apologize i am mega- multitasking (working on 2 projects and this at same time)


if you would like to continue this discussion please pm me...double posting and making a thread into a instant messaging conversation = thread lock and usually a warning
rdrake




PostPosted: Mon Dec 08, 2008 6:50 pm   Post subject: Re: RE:need someonone to make a countdown timer <any language>

ecookman @ Mon Dec 08, 2008 6:02 pm wrote:
if you would like to continue this discussion please pm me...double posting and making a thread into a instant messaging conversation = thread lock and usually a warning
Hey you're right. Question's been answered already so I'm locking this.

You can do what Tony did in almost any language, he just made it fancier by making it dynamically decide whether "day" or "days" was appropriate. If you're using VB.NET check out the DateTime class and in particular the DateTime.Now property. So go nuts.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: