Metadata-Version: 2.0
Name: hdate
Version: 0.4
Summary: Hebrew date and Zmanim
Home-page: https://github.com/royi1000/py-libhdate
Author: Tsvi Mostovicz
Author-email: ttmost@gmail.com
License: GPLv3+
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Requires-Python: >=2.7
Requires-Dist: python-dateutil
Provides-Extra: dev
Requires-Dist: tox; extra == 'dev'

py-libhdate
===========

Jewish/Hebrew date and Zmanim in native python 2.7

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

.. code :: python

    >>> import hdate
    >>> import datetime
    >>> import geocity
    >>> c = geocity.City(city='פתח תק')
    >>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18),
                         latitude=c.latitude, longitude=c.longitude, 
                         timezone=c.timezone)
    >>> 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

.. code :: python

    z = hdate.Zmanim(date=datetime.date(2016, 4, 18),
                     latitude=c.latitude, longitude=c.longitude, 
                     timezone=c.timezone, hebrew=False)

    >>> 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 starts - 19:35
    midnight - 00:39

.. code :: python

    >>> h=hdate.HDate()
    >>> print h.to_string(hebrew=False)

::

    Monday 10 Nisan 5776

.. code :: python

    >>> h=hdate.HDate(datetime.date(2016, 4, 26))
    >>> print h.to_string()

::

    יום שלישי י"ח בניסן התשע"ו ג' בעומר חול המועד פסח


