|
- from datetime import date
- from config import date_dest, evenement
- from get_date import get_date
- from calcul import calcul
- def main():
-
- print("Twitter-DayCounter")
- today = date.today()
- dest = get_date(date_dest)
- temps = calcul(today, dest)
-
- if temps == 0 :
- print("IT'S TIME !")
- else :
- message = "Il reste " + str(temps) + " jours, avant " + evenement
- print(message)
-
-
-
-
- if __name__ == '__main__':
- try :
- main()
- except KeyboardInterrupt :
- print("Fermeture du programme...")
|