Difference between revisions of "Module:Next Occurrence of Hebrew Date/doc"

MyWikiBiz, Author Your Legacy — Saturday September 06, 2025
Jump to navigationJump to search
(Pywikibot 6.4.0)
 
(No difference)

Latest revision as of 05:12, 16 July 2021

Usage

{{#invoke:Next Occurrence of Hebrew Date|next_occurrence_of_hebrew_date_from_date | greg_year | greg_month | greg_day | heb_month | heb_day}}

Where:

  • greg_year is the Gregorian year, like 2014
  • greg_month is the Gregorian month number, like 12 for December
  • greg_day is the Gregorian day of month
  • heb_month can either be the Hebrew month, like Adar, or it's number, like 12 for Adar
  • heb_day is the Hebrew day of month

So for example, if you wanted to compute when the day of Rosh Hashanah falls out on in 2015:

{{#invoke:Next Occurrence of Hebrew Date|next_occurrence_of_hebrew_date_from_date | 2015 | 1 | 1 | 7 | 1}}

which returns September 14, 2015


There is also a convenience function, next_occurrence_of_hebrew_date, which performs the same calculation, with a start time of today's date. This is useful for determining the next occurrence of a Jewish holiday or Yahrtzeit.

{{#invoke:Next Occurrence of Hebrew Date|next_occurrence_of_hebrew_date_from_date |heb_month| heb_day}}

Where:

  • heb_month can either be the Hebrew month, like Adar, or it's number, like 12 for Adar
  • heb_day is the Hebrew day of month

So for example, if you wanted to compute when the next Tu B'shvat falls out on, from the current date:

{{#invoke:Next Occurrence of Hebrew Date|next_occurrence_of_hebrew_date|Shevat|15}}

which returns February 2, 2026