1,908 bytes added
, 05:12, 16 July 2021
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date_from_date | ''greg_year'' | ''greg_month'' | ''greg_day'' | ''heb_month'' | ''heb_day''}}
Where:
* <code>greg_year</code> is the Gregorian year, like 2014
* <code>greg_month</code> is the Gregorian month number, like 12 for December
* <code>greg_day</code> is the Gregorian day of month
* <code>heb_month</code> can either be the Hebrew month, like ''Adar'', or it's number, like 12 for Adar
* <code>heb_day</code> 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:
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date_from_date | 2015 | 1 | 1 | 7 | 1}}
which returns {{#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date_from_date | 2015 | 1 | 1 | 7 | 1}}
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.
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date_from_date |''heb_month''| ''heb_day''}}
Where:
* <code>heb_month</code> can either be the Hebrew month, like ''Adar'', or it's number, like 12 for Adar
* <code>heb_day</code> 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:
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date|Shevat|15}}
which returns {{#invoke:{{BASEPAGENAME}}|next_occurrence_of_hebrew_date|Shevat|15}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>