def create_calendar_object(hyear): ''' create the libhdate calendar object and set it's location and time zone ''' hcal = HcalWrapper() # time calculations use the location # some useful locations and time zones: # Eilat : 29, 34, 2 # Haifa : 32, 34, 2 # Jerusalem : 31, 35, 2 # Tel Aviv : 32, 34, 2 # Ashdod : 31, 34, 2 # Beer Sheva : 31, 34, 2 # Tiberias : 32, 35, 2 # London : 51, 0, 0 # Paris : 48, 2, 1 # New York : 40, -74, -5 # Moscow : 55, 37, 3 # set location for tel aviv longitude = 32.08 # N latitude = 34.8 # E time_zone = 2 # israel UTC+2 dst = 0 # DST - daylight saving time hcal.set_location (longitude, latitude, time_zone + dst) # set holiday and readings (parasha) for Israel / Diaspory hcal.set_israel () #set_diaspora () return hcal