pyluach是一个python包,用于处理希伯来日期、格里高利希伯来日历转换和其他与犹太日历相关的计算。
pyluach的Python项目详细描述
pyluach是一个python包,用于处理希伯来(犹太)日历日期和 希伯来-格里高利转换。
功能
- 希伯来日期和格里高利日期之间的转换
- 找出两个日期之间的差异
- 从给定日期开始在给定时间段查找日期
- 日期之间的丰富比较
- 查找给定日期的工作日
- 查找给定日期的每周欧芹读数
安装
使用pip install pyluach。
典型用途
>>> from pyluach import dates, hebrewcal, parshios >>> today = dates.HebrewDate.today() >>> lastweek_gregorian = (today - 7).to_greg() >>> lastweek_gregorian < today True >>> today - lastweek_gregorian 7 >>> greg = GregorianDate(1986, 3, 21) >>> heb = HebrewDate(5746, 13, 10) >>> greg == heb True >>> for month in hebrewcal.Year(5774).itermonths(): ... print(month.name) Tishrei Cheshvan ... >>> date = dates.GregorianDate(2010, 10, 6) >>> print(parshios.getparsha(date)) [0] >>> print(parshios.getparsha_string(date)) Beraishis
文档
Pyluach的文档可以在https://readthedocs.org/projects/pyluach/找到。
联系人
如有任何问题和意见,请随时与我联系simlist@gmail.com。
许可证
Pyluach是根据麻省理工学院的许可证授权的。