Skip to main content

A Python package for handling Hebrew dates

Project description

hebrewdate

Python module for handling Hebrew dates

This module provides classes and functions for handling Hebrew calendar dates and conversions.

It offers four main classes:

  • HebrewDate: Represents a specific date in the Hebrew calendar, with support for conversions to/from Gregorian dates, manipulation of dates (e.g., adding or subtracting days, months, or years), and various date-related attributes such as day, month, year, and weekday in the Hebrew calendar.
  • HebrewYear: Represents a Hebrew year, managing leap year calculations, month lengths, and determining the first weekday of the year.
  • HebrewCalendar: Extends the standard Calendar class to provide Hebrew calendar functionality, including methods for iterating over month days and converting between Hebrew and Gregorian dates.
  • HTMLHebrewCalendar: Provides HTML formatting of Hebrew calendar data with support for both Hebrew and Gregorian date display, custom CSS styling, and RTL formatting.

Key Features:

  • Conversion between Hebrew and Gregorian dates.
  • Computation of weekdays, month lengths, and leap years for Hebrew dates.
  • Operations for date arithmetic, such as adding and subtracting days, months, and years.
  • Methods for obtaining today's Hebrew date or constructing a Hebrew date from a Gregorian date.
  • Calendar iteration and formatting for Hebrew dates in HTML format.
  • Right-to-left (RTL) HTML calendar display with optional Gregorian date annotations.
  • Customizable CSS styling for calendar presentation.
  • Support for generating complete calendar pages for months and years.

Note: This module supports accurate conversions for Hebrew dates corresponding to Gregorian dates on or after the year 1752. For earlier dates, calculations may have inaccuracies due to historical and calendar system variations.

Author: Isaac Dovolsky Created: 2025

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

hebrewdate-1.0.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hebrewdate-1.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file hebrewdate-1.0.0.tar.gz.

File metadata

  • Download URL: hebrewdate-1.0.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hebrewdate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bb8ef367b41bbcad1ebf7e00c74aef6ecb90b1262bed707522af52420a2e70df
MD5 99c4cb80f7dcf3d6a55ca05251c6427a
BLAKE2b-256 7384d614cf3f7647ac2a8b3630f8cf1c253a0fe429aa01a50920174a247f7b56

See more details on using hashes here.

Provenance

The following attestation bundles were made for hebrewdate-1.0.0.tar.gz:

Publisher: python-publish.yml on Isaac-D20/hebrewdate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hebrewdate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hebrewdate-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hebrewdate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf736fd81ab487e93a03961229ae245c376f5322c44a66ef181f879e7d97b3c
MD5 49ecbffc7fe5ba2b58b687f11994ad45
BLAKE2b-256 5bc837047667c853caa082f000c8f7a3f7dfe55cfac4ce7b980f08681d478eb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hebrewdate-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on Isaac-D20/hebrewdate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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