Difference between revisions of "User:Andrew/sandbox"

From OrthodoxWiki
Jump to: navigation, search
m (compute Pascha date)
m
Line 17: Line 17:
  
 
==Constants==
 
==Constants==
{|  
+
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
 
| '''Constants'''
 
| '''Constants'''
 
| '''Gives'''  
 
| '''Gives'''  
Line 39: Line 39:
  
 
==Page Variables==
 
==Page Variables==
{|  
+
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
 
| '''Variable'''
 
| '''Variable'''
 
| '''Gives'''  
 
| '''Gives'''  
Line 145: Line 145:
  
 
==Time Variables==
 
==Time Variables==
{|  
+
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
 
| '''Variable'''
 
| '''Variable'''
 
| '''Gives'''  
 
| '''Gives'''  
Line 234: Line 234:
 
Calendar (currently April 4 to May 8 on the Gregorian). The Julian Calendar is now 13 days  
 
Calendar (currently April 4 to May 8 on the Gregorian). The Julian Calendar is now 13 days  
 
behind the Gregorian, and will be until March 1, 2100 when it will be 14 days behind the Gregorian Calendar.  
 
behind the Gregorian, and will be until March 1, 2100 when it will be 14 days behind the Gregorian Calendar.  
{|  
+
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
 
| '''Expression'''
 
| '''Expression'''
 
| '''Gives'''  
 
| '''Gives'''  
Line 272: Line 272:
 
|-
 
|-
 
|}
 
|}
 
+
===Pascha===
{|  
+
{| cellpadding="6px" border=1 style="border:1px solid #C0C0C0; border-collapse:collapse;"
 
| '''Expression'''
 
| '''Expression'''
 
| '''Gives'''  
 
| '''Gives'''  
Line 280: Line 280:
 
| <code><nowiki>{{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }}</nowiki></code>
 
| <code><nowiki>{{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }}</nowiki></code>
 
|  {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }}  
 
|  {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }}  
|    Days after  April 3rd
+
|    Days after  April 3rd this year
 
|-
 
|-
 
| <code><nowiki> {{#time:F d Y |{{#time:F d| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}</nowiki></code>
 
| <code><nowiki> {{#time:F d Y |{{#time:F d| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}</nowiki></code>
 
|  {{#time:F d Y |{{#time:F d| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}
 
|  {{#time:F d Y |{{#time:F d| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}
|  '''Pascha this year'''
 
|-
 
| <code><nowiki> {{#time:F d Y |{{#time:F d Y| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}</nowiki></code>
 
|  {{#time:F d Y |{{#time:F d Y| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}}
 
 
|  '''Pascha this year'''
 
|  '''Pascha this year'''
 
|-
 
|-

Revision as of 18:39, November 23, 2011

1

nick name test

--Andy 06:37, May 24, 2007 (PDT) this:

This article is marked as in progress by Andrew 06:04, May 30, 2007 (PDT), who is actively developing it. It has yet to achieve a stable or complete form and is currently being worked on. Please carefully consider before making major edits to this article.

or this:

This article is marked as in progress by Andrew, who is actively developing it. It has yet to achieve a stable or complete form and is currently being worked on. Please carefully consider before making major edits to this article.


Constants

Constants Gives comment
{{SITENAME}} OrthodoxWiki
{{SERVER}} https://orthodoxwiki.org
{{SERVERNAME}} orthodoxwiki.org
{{CONTENTLANGUAGE}} en code of the site's default interface language


Page Variables

Variable Gives comment
{{PAGENAME}} Andrew/sandbox
{{PAGENAMEE}} Andrew/sandbox URL-friendly
{{BASEPAGENAME}} Andrew
{{BASEPAGENAMEE}} Andrew
{{SUBPAGENAME}} sandbox
{{SUBPAGENAMEE}} sandbox
{{NAMESPACE}} User
{{NAMESPACEE}} User
{{FULLPAGENAME}} User:Andrew/sandbox
{{FULLPAGENAMEE}} User:Andrew/sandbox
{{TALKSPACE}} User talk
{{TALKSPACEE}} User_talk URL-friendly
{{SUBJECTSPACE}} User
{{SUBJECTSPACEE}} User
{{ARTICLESPACE}} User
{{ARTICLESPACEE}} User
{{TALKPAGENAME}} User talk:Andrew/sandbox
{{TALKPAGENAMEE}} User_talk:Andrew/sandbox
{{SUBJECTPAGENAME}} User:Andrew/sandbox
{{SUBJECTPAGENAMEE}} User:Andrew/sandbox
{{ARTICLEPAGENAME}} User:Andrew/sandbox
{{ARTICLEPAGENAMEE}} User:Andrew/sandbox
{{REVISIONID}} 105047
{{REVISIONDAY}} 23
{{REVISIONDAY2}} 23
{{REVISIONMONTH}} 11
{{REVISIONYEAR}} 2011
{{REVISIONTIMESTAMP}} 20111123183949
{{SITENAME}} OrthodoxWiki
{{SERVER}} https://orthodoxwiki.org
{{SCRIPTPATH}}
{{SERVERNAME}} orthodoxwiki.org

Time Variables

Variable Gives comment
{{#time:F d }} May 15 Month and day
{{#time:Y-m-d }} 2024-05-15
[[{{#time:F d|{{CURRENTTIMESTAMP}} }}]] May 15 Month and day link
[[{{#time:F d|- 13 day }}]] May 02 Month and day link (old calendar)
[[{{#time:F d|Jan 7 2001 - 13 day }}]] December 25 Jan 7 2001 (old calendar)
[[{{#time:F d|Jan 7 - 13 day }}]] December 25 Jan 7 (old calendar) default to this year
{{#time:Y-m-d | - 2 week}} 2024-05-01
{{CURRENTMONTH}} 05
{{CURRENTTIME}} 19:32 (Must be cashed?)
{{CURRENTHOUR}} 19
{{CURRENTMONTHNAME}} May
{{CURRENTDOW}} 3
{{CURRENTYEAR}} 2024
{{CURRENTWEEK}} 20
{{CURRENTDAYNAME}} Wednesday
{{CURRENTDAY}} 15
{{CURRENTTIMESTAMP}} 20240515193212
{{CURRENTDAY2}} 15
{{CURRENTMONTHABBREV}} May

Pascha date

The following algorithm is based on the algorithm derived by the German mathematician Gauss. The principal simplification is that substitutions have been made for the case of Julian calendars and Orthodox Easters. This algorithm calculates the number of days AFTER March 21 (Julian) that Easter occurs.

 RMD(x,y) = remainder when x is divided by y.

 R1=RMD(Year,19)
 R2=RMD(Year,4)
 R3=RMD(Year,7)
 RA=19*R1+16
 R4=RMD(RA,30)
 RB=2*R2+4*R3+6*R4
 R5=RMD(RB,7)
 RC=R4+R5

The number RC ranges from 1 to 35 which corresponds to March 22 to April 25 in the Julian Calendar (currently April 4 to May 8 on the Gregorian). The Julian Calendar is now 13 days behind the Gregorian, and will be until March 1, 2100 when it will be 14 days behind the Gregorian Calendar.

Expression Gives comment
{{#expr:{{CURRENTYEAR}} mod 19}} 10 R1 = RMD(Year,19)
{{#expr:{{CURRENTYEAR}} mod 4}} 0 R2=RMD(Year,4)
{{#expr:{{CURRENTYEAR}} mod 7}} 1 R3=RMD(Year,7)
{{#expr: (19 * ({{CURRENTYEAR}} mod 19)) + 16}} 206 RA=19*R1+16
{{#expr: ((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30}} 26 R4=RMD(RA,30)
{{#expr: (2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)) }} 160 RB=2*R2+4*R3+6*R4
{{#expr: ((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7 }} 6 R5=RMD(RB,7)
{{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} 32 RC=R4+R5

Pascha

Expression Gives comment
{{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} 32 Days after April 3rd this year
{{#time:F d Y |{{#time:F d| April 3 {{CURRENTYEAR}} }} + {{#expr:(((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30)+(((2* ({{CURRENTYEAR}} mod 4))+(4*({{CURRENTYEAR}} mod 7) ) +(6 * (((19 * ({{CURRENTYEAR}} mod 19)) + 16) mod 30))) mod 7) }} day}} May 05 2024 Pascha this year
{{#time:F d Y |{{#time:F d Y| April 3 1956 }} + {{#expr:(((19 * (1956 mod 19)) + 16) mod 30)+(((2* (1956 mod 4))+(4*(1956 mod 7) ) +(6 * (((19 * (1956 mod 19)) + 16) mod 30))) mod 7) }} day}} May 06 1956 Pascha 1956

Inline definition

Test of Inline definition , hover over words.