Pour compter les jours avant un certain événement. C'est super utile.. je crois
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
375 B

  1. from datetime import date
  2. def get_date(data):
  3. data = str(data)
  4. assert type(data) == str
  5. data = data.split('-')
  6. info = date(int(data[0]), int(data[1]), int(data[2]))
  7. return info
  8. def main():
  9. print("Nothing to do here")
  10. get_date(str(date.today()))
  11. if __name__ == '__main__':
  12. main()