Skip to main content

Jewish/Hebrew date and Zmanim in native Python 2.7/3.x

Project description

Jewish/Hebrew date and Zmanim in native python 3.x

Originally ported from libhdate, see http://libhdate.sourceforge.net/ for more details (including license)


Installation using pip:

$ pip install hdate

Examples:

base code to provide times of the day in hebrew:

>>> import hdate
>>> import datetime
>>> c = hdate.Location("פתח תקוה", 32.08707, 34.88747, "Asia/Jerusalem", 54)
>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c, hebrew=True)
>>> print(z)
עלות השחר - 04:52:00
זמן טלית ותפילין - 05:18:00
הנץ החמה - 06:08:00
סוף זמן ק"ש מג"א - 08:46:00
סוף זמן ק"ש גר"א - 09:23:00
סוף זמן תפילה מג"א - 10:04:00
סוף זמן תפילה גר"א - 10:28:00
חצות היום - 12:40:00
מנחה גדולה - 13:10:30
מנחה קטנה - 16:25:30
פלג המנחה - 17:50:45
שקיעה - 19:12:00
צאת הכוכבים - 19:38:00
חצות הלילה - 00:40:00

and in english:

>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c, hebrew=False)
>>> print(z)
Alot HaShachar - 04:52:00
Talit & Tefilin's time - 05:18:00
Sunrise - 06:08:00
Shema EOT MG"A - 08:46:00
Shema EOT GR"A - 09:23:00
Tefila EOT MG"A - 10:04:00
Tefila EOT GR"A - 10:28:00
Midday - 12:40:00
Big Mincha - 13:10:30
Small Mincha - 16:25:30
Plag Mincha - 17:50:45
Sunset - 19:12:00
First stars - 19:38:00
Midnight - 00:40:00

to provide the full hebrew date:

>>> h = hdate.HDate(datetime.date(2016, 4, 26), hebrew=True)
>>> print(h)
יום שלישי י"ח בניסן ה' תשע"ו ג' בעומר חול המועד פסח

and in english:

>>> h = hdate.HDate(datetime.date(2016, 4, 18), hebrew=False)
>>> print(h)
Monday 10 Nisan 5776

Project details


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.11.0.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

hdate-0.11.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file hdate-0.11.0.tar.gz.

File metadata

  • Download URL: hdate-0.11.0.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.1 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hdate-0.11.0.tar.gz
Algorithm Hash digest
SHA256 391ce1beef2bac4cdf06279bb91785c2eb38d31c880b68c8abea8283e067caf4
MD5 8e0ef4de2a6e090aa76fe1b25e39715a
BLAKE2b-256 baf9409c88c1702dad15db9927ab744abf8ffe93a3743848f40ffe707c8592b9

See more details on using hashes here.

File details

Details for the file hdate-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: hdate-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.1 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for hdate-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf20937877aa77c6436d2a04d870cbcd879378cf4e145b8b3744ba37d5f9bfed
MD5 ee1d8697dc14d6577727e839040b3d2d
BLAKE2b-256 66995616fd323d257b2384ee8b04d6da66d3c599ea4ea6c329601d321a0990ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page