├── umalqurra ├── __init__.py ├── hijri_date.py ├── hijri.py └── ummalqura_arrray.py ├── .gitignore ├── umalqurra.egg-info ├── dependency_links.txt ├── top_level.txt ├── SOURCES.txt └── PKG-INFO ├── dist ├── umalqurra-1.0.0.tar.gz └── umalqurra-1.0.0-py3-none-any.whl ├── setup.py ├── LICENSE └── README.md /umalqurra/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | 3 | -------------------------------------------------------------------------------- /umalqurra.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /umalqurra.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | umalqurra 2 | -------------------------------------------------------------------------------- /dist/umalqurra-1.0.0.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tytkal/python-hijiri-ummalqura/HEAD/dist/umalqurra-1.0.0.tar.gz -------------------------------------------------------------------------------- /dist/umalqurra-1.0.0-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tytkal/python-hijiri-ummalqura/HEAD/dist/umalqurra-1.0.0-py3-none-any.whl -------------------------------------------------------------------------------- /umalqurra.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | README.md 2 | setup.py 3 | umalqurra/__init__.py 4 | umalqurra/hijri.py 5 | umalqurra/hijri_date.py 6 | umalqurra/ummalqura_arrray.py 7 | umalqurra.egg-info/PKG-INFO 8 | umalqurra.egg-info/SOURCES.txt 9 | umalqurra.egg-info/dependency_links.txt 10 | umalqurra.egg-info/top_level.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | with open("README.md", "r") as fh: 4 | long_description = fh.read() 5 | 6 | setuptools.setup( 7 | name="umalqurra", 8 | version="1.0.0", 9 | author="tytkal", 10 | author_email="tytkal@gmail.com", 11 | description="Islamic calendar (hijri).", 12 | long_description=long_description, 13 | long_description_content_type="text/markdown", 14 | url="https://github.com/tytkal/python-hijiri-ummalqura", 15 | packages=setuptools.find_packages(), 16 | classifiers=[ 17 | "Programming Language :: Python :: 3", 18 | "License :: OSI Approved :: MIT License", 19 | "Operating System :: OS Independent", 20 | ], 21 | ) -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 The Python Packaging Authority 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python Hijri Umalqurra 2 | ## Introduction 3 | Python Umalqurra Calender is an API that will give you the ability to convert Gregorian to Hijri and hijri to Gregorian 4 | it will give you the day name in arabic and english , and the month name in Hijri arabic and Gregorian. 5 | ## Install 6 | You can install the library through pip 7 | ```sh 8 | pip install umalqurra 9 | ``` 10 | ## Usage 11 | you can run the code in the python interpreter to see the result 12 | ```py 13 | from umalqurra.hijri_date import HijriDate 14 | #create the object with Gregorian date 15 | um = HijriDate(1989,1,10,gr=True) 16 | #to see the day in Hijri 17 | um.day # result : 3.0 18 | #to see the month in Hijri 19 | um.month #result is 6.0 20 | #year 21 | um.year #1409 22 | #day name in arabic 23 | print um.day_name #الثلاثاء 24 | #day in english 25 | um.day_name_en #Tuesday 26 | #month in Hijri Arabic 27 | print um.month_name #جمادي الاخرة 28 | #month in Gregorian English 29 | um.month_name_gr #January 30 | #year in Gregorian 31 | um.year_gr #1989 32 | #month in Gregorian 33 | um.month_gr # 1 34 | #day in Gregorian 35 | um.day_gr # 10 36 | ``` 37 | if you want to convert from Hijri to Gregorian just change the parameter in the constructor and don't pass flag 'gr' 38 | ```py 39 | #create the object with Hijri date 40 | um = HijriDate(1436,3,15) 41 | ``` 42 | if you want to set the Hijri date from method not constructor 43 | ```py 44 | um = HijriDate() 45 | um.set_date(1409,6,3) 46 | ``` 47 | if you want to set the Gregorian date from method not constructor 48 | ```py 49 | um = HijriDate() 50 | um.set_date_from_gr(2015,1,6) 51 | ``` 52 | if you want the current day 53 | ```py 54 | um = HijriDate.today() 55 | um.day 56 | ``` 57 | ## Reference 58 | The Hijri algorthem code has been transulate from javascript to python. 59 | The java script was developed by Suhail Alkowaileet https://github.com/xsoh/Hijri.js/blob/master/Hijri.js 60 | also I use this code for more understanding https://github.com/kbwood/calendars/blob/master/jquery.calendars.ummalqura.js 61 | 62 | License 63 | ------- 64 | 65 | MIT 66 | 67 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat 68 | [license-url]: LICENSE 69 | -------------------------------------------------------------------------------- /umalqurra.egg-info/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.1 2 | Name: umalqurra 3 | Version: 1.0.0 4 | Summary: Islamic calendar (hijri). 5 | Home-page: https://github.com/tytkal/python-hijiri-ummalqura 6 | Author: tytkal 7 | Author-email: tytkal@gmail.com 8 | License: UNKNOWN 9 | Description: # Python Hijri Umalqurra 10 | ## Introduction 11 | Python Umalqurra Calender is an API that will give you the ability to convert Gregorian to Hijri and hijri to Gregorian 12 | it will give you the day name in arabic and english , and the month name in Hijri arabic and Gregorian. 13 | ## Install 14 | You can install the library through pip 15 | ```sh 16 | pip install umalqurra 17 | ``` 18 | ## Usage 19 | you can run the code in the python interpreter to see the result 20 | ```py 21 | from umalqurra.hijri_date import HijriDate 22 | #create the object with Gregorian date 23 | um = HijriDate(1989,1,10,gr=True) 24 | #to see the day in Hijri 25 | um.day # result : 3.0 26 | #to see the month in Hijri 27 | um.month #result is 6.0 28 | #year 29 | um.year #1409 30 | #day name in arabic 31 | print um.day_name #الثلاثاء 32 | #day in english 33 | um.day_name_en #Tuesday 34 | #month in Hijri Arabic 35 | print um.month_name #جمادي الاخرة 36 | #month in Gregorian English 37 | um.month_name_gr #January 38 | #year in Gregorian 39 | um.year_gr #1989 40 | #month in Gregorian 41 | um.month_gr # 1 42 | #day in Gregorian 43 | um.day_gr # 10 44 | ``` 45 | if you want to convert from Hijri to Gregorian just change the parameter in the constructor and don't pass flag 'gr' 46 | ```py 47 | #create the object with Hijri date 48 | um = HijriDate(1436,3,15) 49 | ``` 50 | if you want to set the Hijri date from method not constructor 51 | ```py 52 | um = HijriDate() 53 | um.set_date(1409,6,3) 54 | ``` 55 | if you want to set the Gregorian date from method not constructor 56 | ```py 57 | um = HijriDate() 58 | um.set_date_from_gr(2015,1,6) 59 | ``` 60 | if you want the current day 61 | ```py 62 | um = HijriDate.today() 63 | um.day 64 | ``` 65 | ## Reference 66 | The Hijri algorthem code has been transulate from javascript to python. 67 | The java script was developed by Suhail Alkowaileet https://github.com/xsoh/Hijri.js/blob/master/Hijri.js 68 | also I use this code for more understanding https://github.com/kbwood/calendars/blob/master/jquery.calendars.ummalqura.js 69 | 70 | License 71 | ------- 72 | 73 | MIT 74 | 75 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat 76 | [license-url]: LICENSE 77 | 78 | Platform: UNKNOWN 79 | Classifier: Programming Language :: Python :: 3 80 | Classifier: License :: OSI Approved :: MIT License 81 | Classifier: Operating System :: OS Independent 82 | Description-Content-Type: text/markdown 83 | -------------------------------------------------------------------------------- /umalqurra/hijri_date.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | ''' 3 | This is an API for Hijri Umalqurra Calendar, 4 | it was developed by khalid Al-hussayen 1436-3-15 2015-1-6. 5 | The algrothem of converting hijri to Gregorian is in hijri.py 6 | This Api will give the ability to convert Gregorian To Hijri or Hijri to Gregorian with the day and month names in Hijri and Gregorian 7 | You can query for the current day in both Hijri and Gregorian 8 | ''' 9 | __author__ = 'Khalid' 10 | from umalqurra.hijri import Umalqurra 11 | from datetime import date 12 | import datetime 13 | 14 | 15 | class HijriDate: 16 | # day in hijri 17 | day = -1 18 | # month in hijri 19 | month = -1 20 | # month len 21 | month_len = -1 22 | # year in hijri 23 | year = -1 24 | day_gr = -1 25 | month_gr = -1 26 | year_gr = -1 27 | # day bane in arabic 28 | day_name = '' 29 | # month name in hijri 30 | month_name = '' 31 | month_dict = {1: 'محرم', 2: 'صفر', 3: 'ربيع الأول', 4: 'ربيع الثاني', 5: 'جمادي الأولى', 6: 'جمادي الآخرة', 7: 'رجب' 32 | , 8: 'شعبان', 9: 'رمضان', 10: 'شوال', 11: 'ذو القعدة', 12: 'ذو الحجة'} 33 | day_dict = {'Saturday': 'السبت', 'Sunday': 'الاحد', 'Monday': 'الاثنين', 'Tuesday': 'الثلاثاء', 34 | 'Wednesday': 'الاربعاء', 'Thursday': 'الخميس', 'Friday': 'الجمعة'} 35 | month_name_gr = '' 36 | day_name_en = '' 37 | 38 | def __init__(self, year=None, month=None, day=None, gr=False): 39 | if year is not None and month is not None and day is not None: 40 | if not gr: 41 | self.set_date(year, month, day) 42 | else: 43 | self.set_date_from_gr(year, month, day) 44 | 45 | # Set dates if the date send by user is Gregorian 46 | def set_date_from_gr(self, year, month, day): 47 | # This will kick an error if month or day out of range 48 | datetime.datetime(year, month, day) 49 | um = Umalqurra() 50 | self.day_gr, self.month_gr, self.year_gr = day, month, year 51 | self.year, self.month, self.day, self.month_len = um.gegorean_to_hijri(year, month, day) 52 | self.month_name = self.month_dict[self.month] 53 | date_gr = date(year, month, day) 54 | self.day_name_en = date_gr.strftime("%A") 55 | self.day_name = self.day_dict[self.day_name_en] 56 | self.month_name_gr = date_gr.strftime("%B") 57 | 58 | # Set dates if date send by user is Hijri 59 | def set_date(self, year, month, day): 60 | # This will kick an error if month or day out of range 61 | datetime.datetime(year, month, day) 62 | um = Umalqurra() 63 | self.day, self.month, self.year = day, month, year 64 | self.month_name = self.month_dict[month] 65 | self.year_gr, self.month_gr, self.day_gr = um.hijri_to_gregorian(year, month, day) 66 | date_gr = date(int(self.year_gr), int(self.month_gr), int(self.day_gr)) 67 | self.day_name_en = date_gr.strftime("%A") 68 | self.day_name = self.day_dict[self.day_name_en] 69 | self.month_name_gr = date_gr.strftime("%B") 70 | 71 | @classmethod 72 | def today(cls): 73 | today = date.today() 74 | hijri_date = HijriDate(today.year, today.month, today.day, True) 75 | return hijri_date 76 | -------------------------------------------------------------------------------- /umalqurra/hijri.py: -------------------------------------------------------------------------------- 1 | import math 2 | from umalqurra.ummalqura_arrray import UmalqurraArray 3 | 4 | ''' 5 | This class is responsoble to convert from Hijri to Gregorian or from Gregorian to Hijri 6 | The algrothem was converted from java script to python by Khalid Al-hussayen in 1436-3-14 2015-1-5 7 | The orjinal source developed by Suhail Alkowaileet the source url https://github.com/xsoh/Hijri.js/blob/master/Hijri.js 8 | ''' 9 | 10 | 11 | class Umalqurra: 12 | def gegorean_to_hijri(self, year, month, day): 13 | # This code the modified version of R.H. van Gent Code, it can be found 14 | # at http://www.staff.science.uu.nl/~gent0113/islam/ummalqura.htm 15 | # read calendar data 16 | day = int(day) 17 | m = int(month) # Here we enter the Index of the month (which starts with Zero) 18 | y = int(year) 19 | # append January and February to the previous year (i.e. regard March as 20 | # the first month of the year in order to simplify leapday corrections) 21 | if m < 3: 22 | y -= 1 23 | m += 12 24 | # determine offset between Julian and Gregorian calendar 25 | a = math.floor(y / 100.) 26 | jgc = a - math.floor(a / 4.) - 2 27 | # compute Chronological Julian Day Number (CJDN) 28 | cjdn = math.floor(365.25 * (y + 4716)) + math.floor(30.6001 * (m + 1)) + day - jgc - 1524 29 | a = math.floor((cjdn - 1867216.25) / 36524.25) 30 | # compute Modified Chronological Julian Day Number (MCJDN) 31 | mcjdn = cjdn - 2400000 32 | # the MCJDN's of the start of the lunations in the Umm al-Qura calendar are stored in 'islamcalendar_dat.js' 33 | index = UmalqurraArray.get_index(mcjdn) 34 | # compute and output the Umm al-Qura calendar date 35 | iln = index + 16260 36 | ii = math.floor((iln - 1) / 12) 37 | iy = ii + 1 38 | im = iln - 12 * ii 39 | id = mcjdn - UmalqurraArray.ummalqura_dat[index - 1] + 1 40 | ml = UmalqurraArray.ummalqura_dat[index] - UmalqurraArray.ummalqura_dat[index - 1] 41 | return iy, im, id, ml 42 | 43 | def hijri_to_gregorian(self, year, month, day): 44 | year = int(year) 45 | month = int(month) 46 | day = int(day) 47 | iy = year 48 | im = month 49 | id = day 50 | ii = iy - 1 51 | iln = (ii * 12) + 1 + (im - 1) 52 | i = iln - 16260 53 | mcjdn = id + UmalqurraArray.ummalqura_dat[i - 1] - 1 54 | cjdn = mcjdn + 2400000 55 | return self.julian_to_gregorian(cjdn) 56 | 57 | def julian_to_gregorian(self, julianDate): 58 | # source from: http://keith-wood.name/calendars.html 59 | z = math.floor(julianDate + 0.5) 60 | a = math.floor((z - 1867216.25) / 36524.25) 61 | a = z + 1 + a - math.floor(a / 4) 62 | b = a + 1524 63 | c = math.floor((b - 122.1) / 365.25) 64 | d = math.floor(365.25 * c) 65 | e = math.floor((b - d) / 30.6001) 66 | day = b - d - math.floor(e * 30.6001) 67 | if e > 13.5: 68 | month = e - 13 69 | else: 70 | month = e - 1 71 | if month > 2.5: 72 | year = c - 4716 73 | else: 74 | year = c - 4715 75 | if year <= 0: 76 | year -= 1 77 | return year, month, day 78 | -------------------------------------------------------------------------------- /umalqurra/ummalqura_arrray.py: -------------------------------------------------------------------------------- 1 | __author__ = 'kalhussayen' 2 | 3 | 4 | class UmalqurraArray: 5 | ummalqura_dat = [28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990, 6 | 29019, 29049, 29078, 29108, 29137, 29167, 7 | 29196, 29226, 29255, 29285, 29315, 29345, 29375, 29404, 29434, 29463, 29492, 29522, 29551, 29580, 8 | 29610, 29640, 29669, 29699, 29729, 29759, 9 | 29788, 29818, 29847, 29876, 29906, 29935, 29964, 29994, 30023, 30053, 30082, 30112, 30141, 30171, 10 | 30200, 30230, 30259, 30289, 30318, 30348, 11 | 30378, 30408, 30437, 30467, 30496, 30526, 30555, 30585, 30614, 30644, 30673, 30703, 30732, 30762, 12 | 30791, 30821, 30850, 30880, 30909, 30939, 13 | 30968, 30998, 31027, 31057, 31086, 31116, 31145, 31175, 31204, 31234, 31263, 31293, 31322, 31352, 14 | 31381, 31411, 31441, 31471, 31500, 31530, 15 | 31559, 31589, 31618, 31648, 31676, 31706, 31736, 31766, 31795, 31825, 31854, 31884, 31913, 31943, 16 | 31972, 32002, 32031, 32061, 32090, 32120, 17 | 32150, 32180, 32209, 32239, 32268, 32298, 32327, 32357, 32386, 32416, 32445, 32475, 32504, 32534, 18 | 32563, 32593, 32622, 32652, 32681, 32711, 19 | 32740, 32770, 32799, 32829, 32858, 32888, 32917, 32947, 32976, 33006, 33035, 33065, 33094, 33124, 20 | 33153, 33183, 33213, 33243, 33272, 33302, 21 | 33331, 33361, 33390, 33420, 33450, 33479, 33509, 33539, 33568, 33598, 33627, 33657, 33686, 33716, 22 | 33745, 33775, 33804, 33834, 33863, 33893, 23 | 33922, 33952, 33981, 34011, 34040, 34069, 34099, 34128, 34158, 34187, 34217, 34247, 34277, 34306, 24 | 34336, 34365, 34395, 34424, 34454, 34483, 25 | 34512, 34542, 34571, 34601, 34631, 34660, 34690, 34719, 34749, 34778, 34808, 34837, 34867, 34896, 26 | 34926, 34955, 34985, 35015, 35044, 35074, 27 | 35103, 35133, 35162, 35192, 35222, 35251, 35280, 35310, 35340, 35370, 35399, 35429, 35458, 35488, 28 | 35517, 35547, 35576, 35605, 35635, 35665, 29 | 35694, 35723, 35753, 35782, 35811, 35841, 35871, 35901, 35930, 35960, 35989, 36019, 36048, 36078, 30 | 36107, 36136, 36166, 36195, 36225, 36254, 31 | 36284, 36314, 36343, 36373, 36403, 36433, 36462, 36492, 36521, 36551, 36580, 36610, 36639, 36669, 32 | 36698, 36728, 36757, 36786, 36816, 36845, 33 | 36875, 36904, 36934, 36963, 36993, 37022, 37052, 37081, 37111, 37141, 37170, 37200, 37229, 37259, 34 | 37288, 37318, 37347, 37377, 37406, 37436, 35 | 37465, 37495, 37524, 37554, 37584, 37613, 37643, 37672, 37701, 37731, 37760, 37790, 37819, 37849, 36 | 37878, 37908, 37938, 37967, 37997, 38027, 37 | 38056, 38085, 38115, 38144, 38174, 38203, 38233, 38262, 38292, 38322, 38351, 38381, 38410, 38440, 38 | 38469, 38499, 38528, 38558, 38587, 38617, 39 | 38646, 38676, 38705, 38735, 38764, 38794, 38823, 38853, 38882, 38912, 38941, 38971, 39001, 39030, 40 | 39059, 39089, 39118, 39148, 39178, 39208, 41 | 39237, 39267, 39297, 39326, 39355, 39385, 39414, 39444, 39473, 39503, 39532, 39562, 39592, 39621, 42 | 39650, 39680, 39709, 39739, 39768, 39798, 43 | 39827, 39857, 39886, 39916, 39946, 39975, 40005, 40035, 40064, 40094, 40123, 40153, 40182, 40212, 44 | 40241, 40271, 40300, 40330, 40359, 40389, 45 | 40418, 40448, 40477, 40507, 40536, 40566, 40595, 40625, 40655, 40685, 40714, 40744, 40773, 40803, 46 | 40832, 40862, 40892, 40921, 40951, 40980, 47 | 41009, 41039, 41068, 41098, 41127, 41157, 41186, 41216, 41245, 41275, 41304, 41334, 41364, 41393, 48 | 41422, 41452, 41481, 41511, 41540, 41570, 49 | 41599, 41629, 41658, 41688, 41718, 41748, 41777, 41807, 41836, 41865, 41894, 41924, 41953, 41983, 50 | 42012, 42042, 42072, 42102, 42131, 42161, 51 | 42190, 42220, 42249, 42279, 42308, 42337, 42367, 42397, 42426, 42456, 42485, 42515, 42545, 42574, 52 | 42604, 42633, 42662, 42692, 42721, 42751, 53 | 42780, 42810, 42839, 42869, 42899, 42929, 42958, 42988, 43017, 43046, 43076, 43105, 43135, 43164, 54 | 43194, 43223, 43253, 43283, 43312, 43342, 55 | 43371, 43401, 43430, 43460, 43489, 43519, 43548, 43578, 43607, 43637, 43666, 43696, 43726, 43755, 56 | 43785, 43814, 43844, 43873, 43903, 43932, 57 | 43962, 43991, 44021, 44050, 44080, 44109, 44139, 44169, 44198, 44228, 44258, 44287, 44317, 44346, 58 | 44375, 44405, 44434, 44464, 44493, 44523, 59 | 44553, 44582, 44612, 44641, 44671, 44700, 44730, 44759, 44788, 44818, 44847, 44877, 44906, 44936, 60 | 44966, 44996, 45025, 45055, 45084, 45114, 61 | 45143, 45172, 45202, 45231, 45261, 45290, 45320, 45350, 45380, 45409, 45439, 45468, 45498, 45527, 62 | 45556, 45586, 45615, 45644, 45674, 45704, 63 | 45733, 45763, 45793, 45823, 45852, 45882, 45911, 45940, 45970, 45999, 46028, 46058, 46088, 46117, 64 | 46147, 46177, 46206, 46236, 46265, 46295, 65 | 46324, 46354, 46383, 46413, 46442, 46472, 46501, 46531, 46560, 46590, 46620, 46649, 46679, 46708, 66 | 46738, 46767, 46797, 46826, 46856, 46885, 67 | 46915, 46944, 46974, 47003, 47033, 47063, 47092, 47122, 47151, 47181, 47210, 47240, 47269, 47298, 68 | 47328, 47357, 47387, 47417, 47446, 47476, 69 | 47506, 47535, 47565, 47594, 47624, 47653, 47682, 47712, 47741, 47771, 47800, 47830, 47860, 47890, 70 | 47919, 47949, 47978, 48008, 48037, 48066, 71 | 48096, 48125, 48155, 48184, 48214, 48244, 48273, 48303, 48333, 48362, 48392, 48421, 48450, 48480, 72 | 48509, 48538, 48568, 48598, 48627, 48657, 73 | 48687, 48717, 48746, 48776, 48805, 48834, 48864, 48893, 48922, 48952, 48982, 49011, 49041, 49071, 74 | 49100, 49130, 49160, 49189, 49218, 49248, 75 | 49277, 49306, 49336, 49365, 49395, 49425, 49455, 49484, 49514, 49543, 49573, 49602, 49632, 49661, 76 | 49690, 49720, 49749, 49779, 49809, 49838, 77 | 49868, 49898, 49927, 49957, 49986, 50016, 50045, 50075, 50104, 50133, 50163, 50192, 50222, 50252, 78 | 50281, 50311, 50340, 50370, 50400, 50429, 79 | 50459, 50488, 50518, 50547, 50576, 50606, 50635, 50665, 50694, 50724, 50754, 50784, 50813, 50843, 80 | 50872, 50902, 50931, 50960, 50990, 51019, 81 | 51049, 51078, 51108, 51138, 51167, 51197, 51227, 51256, 51286, 51315, 51345, 51374, 51403, 51433, 82 | 51462, 51492, 51522, 51552, 51582, 51611, 83 | 51641, 51670, 51699, 51729, 51758, 51787, 51816, 51846, 51876, 51906, 51936, 51965, 51995, 52025, 84 | 52054, 52083, 52113, 52142, 52171, 52200, 85 | 52230, 52260, 52290, 52319, 52349, 52379, 52408, 52438, 52467, 52497, 52526, 52555, 52585, 52614, 86 | 52644, 52673, 52703, 52733, 52762, 52792, 87 | 52822, 52851, 52881, 52910, 52939, 52969, 52998, 53028, 53057, 53087, 53116, 53146, 53176, 53205, 88 | 53235, 53264, 53294, 53324, 53353, 53383, 89 | 53412, 53441, 53471, 53500, 53530, 53559, 53589, 53619, 53648, 53678, 53708, 53737, 53767, 53796, 90 | 53825, 53855, 53884, 53913, 53943, 53973, 91 | 54003, 54032, 54062, 54092, 54121, 54151, 54180, 54209, 54239, 54268, 54297, 54327, 54357, 54387, 92 | 54416, 54446, 54476, 54505, 54535, 54564, 93 | 54593, 54623, 54652, 54681, 54711, 54741, 54770, 54800, 54830, 54859, 54889, 54919, 54948, 54977, 94 | 55007, 55036, 55066, 55095, 55125, 55154, 95 | 55184, 55213, 55243, 55273, 55302, 55332, 55361, 55391, 55420, 55450, 55479, 55508, 55538, 55567, 96 | 55597, 55627, 55657, 55686, 55716, 55745, 97 | 55775, 55804, 55834, 55863, 55892, 55922, 55951, 55981, 56011, 56040, 56070, 56100, 56129, 56159, 98 | 56188, 56218, 56247, 56276, 56306, 56335, 99 | 56365, 56394, 56424, 56454, 56483, 56513, 56543, 56572, 56601, 56631, 56660, 56690, 56719, 56749, 100 | 56778, 56808, 56837, 56867, 56897, 56926, 101 | 56956, 56985, 57015, 57044, 57074, 57103, 57133, 57162, 57192, 57221, 57251, 57280, 57310, 57340, 102 | 57369, 57399, 57429, 57458, 57487, 57517, 103 | 57546, 57576, 57605, 57634, 57664, 57694, 57723, 57753, 57783, 57813, 57842, 57871, 57901, 57930, 104 | 57959, 57989, 58018, 58048, 58077, 58107, 105 | 58137, 58167, 58196, 58226, 58255, 58285, 58314, 58343, 58373, 58402, 58432, 58461, 58491, 58521, 106 | 58551, 58580, 58610, 58639, 58669, 58698, 107 | 58727, 58757, 58786, 58816, 58845, 58875, 58905, 58934, 58964, 58994, 59023, 59053, 59082, 59111, 108 | 59141, 59170, 59200, 59229, 59259, 59288, 109 | 59318, 59348, 59377, 59407, 59436, 59466, 59495, 59525, 59554, 59584, 59613, 59643, 59672, 59702, 110 | 59731, 59761, 59791, 59820, 59850, 59879, 111 | 59909, 59939, 59968, 59997, 60027, 60056, 60086, 60115, 60145, 60174, 60204, 60234, 60264, 60293, 112 | 60323, 60352, 60381, 60411, 60440, 60469, 113 | 60499, 60528, 60558, 60588, 60618, 60648, 60677, 60707, 60736, 60765, 60795, 60824, 60853, 60883, 114 | 60912, 60942, 60972, 61002, 61031, 61061, 115 | 61090, 61120, 61149, 61179, 61208, 61237, 61267, 61296, 61326, 61356, 61385, 61415, 61445, 61474, 116 | 61504, 61533, 61563, 61592, 61621, 61651, 117 | 61680, 61710, 61739, 61769, 61799, 61828, 61858, 61888, 61917, 61947, 61976, 62006, 62035, 62064, 118 | 62094, 62123, 62153, 62182, 62212, 62242, 119 | 62271, 62301, 62331, 62360, 62390, 62419, 62448, 62478, 62507, 62537, 62566, 62596, 62625, 62655, 120 | 62685, 62715, 62744, 62774, 62803, 62832, 121 | 62862, 62891, 62921, 62950, 62980, 63009, 63039, 63069, 63099, 63128, 63157, 63187, 63216, 63246, 122 | 63275, 63305, 63334, 63363, 63393, 63423, 123 | 63453, 63482, 63512, 63541, 63571, 63600, 63630, 63659, 63689, 63718, 63747, 63777, 63807, 63836, 124 | 63866, 63895, 63925, 63955, 63984, 64014, 125 | 64043, 64073, 64102, 64131, 64161, 64190, 64220, 64249, 64279, 64309, 64339, 64368, 64398, 64427, 126 | 64457, 64486, 64515, 64545, 64574, 64603, 127 | 64633, 64663, 64692, 64722, 64752, 64782, 64811, 64841, 64870, 64899, 64929, 64958, 64987, 65017, 128 | 65047, 65076, 65106, 65136, 65166, 65195, 129 | 65225, 65254, 65283, 65313, 65342, 65371, 65401, 65431, 65460, 65490, 65520, 65549, 65579, 65608, 130 | 65638, 65667, 65697, 65726, 65755, 65785, 131 | 65815, 65844, 65874, 65903, 65933, 65963, 65992, 66022, 66051, 66081, 66110, 66140, 66169, 66199, 132 | 66228, 66258, 66287, 66317, 66346, 66376, 133 | 66405, 66435, 66465, 66494, 66524, 66553, 66583, 66612, 66641, 66671, 66700, 66730, 66760, 66789, 134 | 66819, 66849, 66878, 66908, 66937, 66967, 135 | 66996, 67025, 67055, 67084, 67114, 67143, 67173, 67203, 67233, 67262, 67292, 67321, 67351, 67380, 136 | 67409, 67439, 67468, 67497, 67527, 67557, 137 | 67587, 67617, 67646, 67676, 67705, 67735, 67764, 67793, 67823, 67852, 67882, 67911, 67941, 67971, 138 | 68000, 68030, 68060, 68089, 68119, 68148, 139 | 68177, 68207, 68236, 68266, 68295, 68325, 68354, 68384, 68414, 68443, 68473, 68502, 68532, 68561, 140 | 68591, 68620, 68650, 68679, 68708, 68738, 141 | 68768, 68797, 68827, 68857, 68886, 68916, 68946, 68975, 69004, 69034, 69063, 69092, 69122, 69152, 142 | 69181, 69211, 69240, 69270, 69300, 69330, 143 | 69359, 69388, 69418, 69447, 69476, 69506, 69535, 69565, 69595, 69624, 69654, 69684, 69713, 69743, 144 | 69772, 69802, 69831, 69861, 69890, 69919, 145 | 69949, 69978, 70008, 70038, 70067, 70097, 70126, 70156, 70186, 70215, 70245, 70274, 70303, 70333, 146 | 70362, 70392, 70421, 70451, 70481, 70510, 147 | 70540, 70570, 70599, 70629, 70658, 70687, 70717, 70746, 70776, 70805, 70835, 70864, 70894, 70924, 148 | 70954, 70983, 71013, 71042, 71071, 71101, 149 | 71130, 71159, 71189, 71218, 71248, 71278, 71308, 71337, 71367, 71397, 71426, 71455, 71485, 71514, 150 | 71543, 71573, 71602, 71632, 71662, 71691, 151 | 71721, 71751, 71781, 71810, 71839, 71869, 71898, 71927, 71957, 71986, 72016, 72046, 72075, 72105, 152 | 72135, 72164, 72194, 72223, 72253, 72282, 153 | 72311, 72341, 72370, 72400, 72429, 72459, 72489, 72518, 72548, 72577, 72607, 72637, 72666, 72695, 154 | 72725, 72754, 72784, 72813, 72843, 72872, 155 | 72902, 72931, 72961, 72991, 73020, 73050, 73080, 73109, 73139, 73168, 73197, 73227, 73256, 73286, 156 | 73315, 73345, 73375, 73404, 73434, 73464, 157 | 73493, 73523, 73552, 73581, 73611, 73640, 73669, 73699, 73729, 73758, 73788, 73818, 73848, 73877, 158 | 73907, 73936, 73965, 73995, 74024, 74053, 159 | 74083, 74113, 74142, 74172, 74202, 74231, 74261, 74291, 74320, 74349, 74379, 74408, 74437, 74467, 160 | 74497, 74526, 74556, 74586, 74615, 74645, 161 | 74675, 74704, 74733, 74763, 74792, 74822, 74851, 74881, 74910, 74940, 74969, 74999, 75029, 75058, 162 | 75088, 75117, 75147, 75176, 75206, 75235, 163 | 75264, 75294, 75323, 75353, 75383, 75412, 75442, 75472, 75501, 75531, 75560, 75590, 75619, 75648, 164 | 75678, 75707, 75737, 75766, 75796, 75826, 165 | 75856, 75885, 75915, 75944, 75974, 76003, 76032, 76062, 76091, 76121, 76150, 76180, 76210, 76239, 166 | 76269, 76299, 76328, 76358, 76387, 76416, 167 | 76446, 76475, 76505, 76534, 76564, 76593, 76623, 76653, 76682, 76712, 76741, 76771, 76801, 76830, 168 | 76859, 76889, 76918, 76948, 76977, 77007, 169 | 77036, 77066, 77096, 77125, 77155, 77185, 77214, 77243, 77273, 77302, 77332, 77361, 77390, 77420, 170 | 77450, 77479, 77509, 77539, 77569, 77598, 171 | 77627, 77657, 77686, 77715, 77745, 77774, 77804, 77833, 77863, 77893, 77923, 77952, 77982, 78011, 172 | 78041, 78070, 78099, 78129, 78158, 78188, 173 | 78217, 78247, 78277, 78307, 78336, 78366, 78395, 78425, 78454, 78483, 78513, 78542, 78572, 78601, 174 | 78631, 78661, 78690, 78720, 78750, 78779, 175 | 78808, 78838, 78867, 78897, 78926, 78956, 78985, 79015, 79044, 79074, 79104, 79133, 79163, 79192, 176 | 79222, 79251, 79281, 79310, 79340, 79369, 177 | 79399, 79428, 79458, 79487, 79517, 79546, 79576, 79606, 79635, 79665, 79695, 79724, 79753, 79783, 178 | 79812, 79841, 79871, 79900, 79930, 79960, 179 | 79990] 180 | 181 | @classmethod 182 | def get_index(cls,mcjdn): 183 | for index, ummalqura in enumerate(UmalqurraArray.ummalqura_dat): 184 | if ummalqura > mcjdn: 185 | return index 186 | --------------------------------------------------------------------------------