convert year/month/day to day of year in python,day_of_year = datetime.now().timetuple().tm_yday