From GamingWiki
Jump to: navigation, search
(Created page with "<!-- Create a variable to hold the year number. Current game year is 24463. -->{{#vardefine: theyear|<!-- -->{{#ifeq:{{{1}}}|BC|{{PAGENAME}}|{{{year|{{#rmatch:{{PAGENAME}}|^...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<!--
 
<!--
   Create a variable to hold the year number. Current game year is 24463.
+
   Create a variable to hold the year number.
 
-->{{#vardefine: theyear|<!--
 
-->{{#vardefine: theyear|<!--
   -->{{#ifeq:{{{1}}}|BC|{{PAGENAME}}|{{{year|{{#rmatch:{{PAGENAME}}|^\d+$|{{PAGENAME}}|24463}}}}}}}<!--
+
   -->{{#ifeq:{{{1}}}|BC|{{PAGENAME}}|{{{year|{{#rmatch:{{PAGENAME}}|^\d+$|{{PAGENAME}}|{{Terra Φ/CURRENTYEAR}}}}}}}}}<!--
 
-->}}<!--
 
-->}}<!--
  
Line 10: Line 10:
 
-->''<span style="font-family: serif;">{{Roman|{{#var:theyear}}}}</span>''
 
-->''<span style="font-family: serif;">{{Roman|{{#var:theyear}}}}</span>''
 
;; [[Antares calendar]]
 
;; [[Antares calendar]]
:: {{#ifexpr: {{#var:theyear}} < 18512 | prehistory |<!--
+
:: {{Gregorian to Antares|{{#var:theyear}}}}
  -->{{#vardefine: startdate | {{#expr: ({{#var:theyear}} - 18512)/7.83}} }}<!--
 
  -->{{#vardefine: startfrag | {{#expr: ({{#var:startdate}}*5) mod 5}} }}<!--
 
  -->{{#vardefine: enddate  | {{#expr: ({{#var:theyear}} - 18511)/7.83}} }}<!--
 
  -->{{#vardefine: endfrag  | {{#expr: ({{#var:enddate}}*5) mod 5}} }}<!--
 
  -->{{#expr: floor({{#var: startdate}})}}<!--
 
  -->{{#switch: {{#var:startfrag}} | 0=&alpha; | 1=&beta; | 2=&gamma; | 3=&delta; | 4=&epsilon; | err }}<!--
 
  -->{{#ifexpr: {{#var:startfrag}} = {{#var:endfrag}} ||<!--
 
      --> &ndash; <!--
 
      -->{{#expr: floor({{#var:enddate}})}}<!--
 
      -->{{#switch: {{#var:endfrag}} | 0=&alpha; | 1=&beta; | 2=&gamma; | 3=&delta; | 4=&epsilon; | err }}<!--
 
  -->}}<!--
 
-->}}
 
 
;; [[Unix time]]
 
;; [[Unix time]]
 
:: {{ #expr:({{age in days|1970|01|01|{{#var:theyear}}|01|01}}*24*60*60)}} &ndash; {{ #expr: ({{age in days|1970|01|01|{{#var:theyear}}+1|01|01}}*24*60*60)-1}}
 
:: {{ #expr:({{age in days|1970|01|01|{{#var:theyear}}|01|01}}*24*60*60)}} &ndash; {{ #expr: ({{age in days|1970|01|01|{{#var:theyear}}+1|01|01}}*24*60*60)-1}}

Latest revision as of 18:09, 22 February 2011

Gregorian calendar
24463
XXMMMMCDLXIII
Antares calendar
760α
Unix time
709810560000 – 709842095999