Hebrew date and Zmanim
Project description
Jewish/Hebrew date and Zmanim in native python 2.7/3.x
Originally ported from libhdate, see http://libhdate.sourceforge.net/ for more details (including license)
>>> import hdate
>>> import datetime
>>> from collections import namedtuple
>>> City = namedtuple("City", ["name", "latitude", "longitude", "timezone", "elevation"])
>>> c = City("פתח תקוה", 32.08707, 34.88747, "Asia/Jerusalem", 54)
>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18),
latitude=c.latitude, longitude=c.longitude,
timezone=c.timezone)
>>> print z
עלות השחר - 04:53 זמן טלית ותפילין - 05:19 הנץ החמה - 06:09 סוף זמן ק"ש מג"א - 08:46 סוף זמן ק"ש הגר"א - 09:24 סוף זמן תפילה מג"א - 10:03 סוף זמן תפילה גר"א - 10:29 חצות היום - 12:39 מנחה גדולה - 13:11 מנחה קטנה - 16:26 פלג מנחה - 17:48 שקיעה - 19:10 צאת הככבים - 19:35 חצות הלילה - 00:39
z = hdate.Zmanim(date=datetime.date(2016, 4, 18),
latitude=c.latitude, longitude=c.longitude,
timezone=c.timezone, hebrew=False)
>>> print z
Alot HaShachar - 04:53 Talit & Tefilin's time - 05:19 Sunrise - 06:09 Shema EOT MG"A - 08:46 Shema EOT GR"A - 09:24 Tefila EOT MG"A - 10:03 Tefila EOT GR"A - 10:29 Midday - 12:39 Big Mincha - 13:11 Small Mincha - 16:26 Plag Mincha - 17:48 Sunset - 19:10 First stars - 19:35 Midnight - 00:39
>>> h=hdate.HDate(datetime.date(2016, 4, 18)hebrew=False)
>>> print h
Monday 10 Nisan 5776
>>> h=hdate.HDate(datetime.date(2016, 4, 26), hebrew=True)
>>> print h
יום שלישי י"ח בניסן התשע"ו ג' בעומר חול המועד פסח
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hdate-0.7.1.tar.gz
(33.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hdate-0.7.1-py2.py3-none-any.whl
(27.0 kB
view details)
File details
Details for the file hdate-0.7.1.tar.gz.
File metadata
- Download URL: hdate-0.7.1.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db0cda365ebcf4e63fbabddd31b4c808ffa028ec0c1bad2076bbb6be44654bb8
|
|
| MD5 |
2ec6a831d762e78de8187bade531b0c3
|
|
| BLAKE2b-256 |
28225f022da13b8781bae8d4fc77326f8c44ac6d16592d410d6fec996420db7a
|
File details
Details for the file hdate-0.7.1-py2.py3-none-any.whl.
File metadata
- Download URL: hdate-0.7.1-py2.py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b0f2b0c3d8c455d303fb186ede80170ae49823a36c57027bd61e6b43e22f831
|
|
| MD5 |
3356c0f1d6b7ad998cc12f6f2f2e9da1
|
|
| BLAKE2b-256 |
cc098833d88521bf3964b5ba13a7723018c1ddc4c2b483bce8cb65f06493236e
|