Thursday, 30 June 2016

Playing with birthday using Python

I always wondered how to access calendar and work with dates in programming languages,
Thanks to Python's datetime module, which makes it so easy to work with it.

Python code wallpaper

The following python script has following properties

  1. requires python 3.x to run
  2. Read birthdate and tell birth month, tell number of days till next birthday
  3. Tested on Unix(MacOs and Ubuntu)
  4. But should also work on windows
  5. Try, test, run and then write your own
  6. And I forgot something, Hello everyone  :-)

Further you can use this idea to read a birthday and add it to google calendars to remind you when the birthday comes.{Well I think everyone remembers her/his birrthday :-) }