Module:Next Occurrence of Hebrew Date/doc

MyWikiBiz, Author Your Legacy — Friday July 19, 2024
Jump to navigationJump to search

This is the documentation page for Module:Next Occurrence of Hebrew Date

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 13, 2025