Hello friends.
I want to create a countdown program for the new year that is comming.
I know i can use this code for example, for short certain time:
from threading import Timer
def sayhi():
print "hello everybody!"
t = Timer(10, sayhi)
t.start()
But the new year begins in 29 days (2015, march 21)(at 02:15:11 AM). So i cant calculate how many seconds is left!!
So what can i do? I think i should give the date to the program and it should use a calendar maybe, but i don't know how.