Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Next Occurrence of Hebrew Date/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!-- 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>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Next Occurrence of Hebrew Date
(
edit
)