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.3.tar.gz
(33.3 kB
view hashes)
Built Distribution
hdate-0.7.3-py2.py3-none-any.whl
(27.1 kB
view hashes)
Close
Hashes for hdate-0.7.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c21ac8e3107327678f8b43bb1d4ce3f2106bbac81c848e4429872400c95a5b0 |
|
MD5 | 036e7c0b2bce73428364d564a78cb9e5 |
|
BLAKE2b-256 | 463098d0ee4c3d0e4bc843c9801b682707cc3e48ce7c281dc9ef295e42289410 |