Template:Gregorian serial date

From ETCwiki
Revision as of 23:50, 9 May 2009 by Ddxfish (talk | contribs) (Created page with '{{#expr: {{void|Days from all years past:}} + (({{{year|{{CURRENTYEAR}}}}} - 1) * 365) + ((({{{year|{{CURRENTYEAR}}}}} - 1) - (({{{year|{{CURRENTYEAR}}}...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

{{#expr:

       Template:Void
       + ((2024 - 1) * 365)
       + (((2024 - 1) - ((2024 - 1) mod 4)) / 4)     Template:Void
       - (((2024 - 1) - ((2024 - 1) mod 100)) / 100) Template:Void
       + (((2024 - 1) - ((2024 - 1) mod 400)) / 400) Template:Void
      Template:Void

       + {{ #ifexpr:    Template:Void Template:Void
                    (11 - 1) < 8 
                    | ( (11 - 1) * 30.5 round 0) 
                    | ( (11 - 1) * 30.5 + 0.9 round 0 ) 
         }} 
       - {{ #ifexpr: (11 <= 2) | 0 |  
            {{ #ifexpr:    Template:Void
                    (2024 / 4) = (2024 / 4 round 0)          Template:Void
                     and (2024 / 100 != 2024 / 100 round 0)  Template:Void
               | 1 | 2 
            }}
         }}
       + {{ #ifexpr: (11 <= 2) | 0 |
            {{ #ifexpr: Template:Void
                    (2024 / 400) = (2024 / 400 round 0) 
               | 1 | 0 
            }}
         }} 
       + 23
}}{{#ifexpr: 2024 < 1 |
       _ERROR - Can not handle dates before January 1, 1 A.D.

}}

{{#ifeq:μ|
 |
|
{{#ifeq:μ|μ
  |{{#ifexist: {{#switch: Gregorian serial date
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Gregorian serial date/doc

}}

   |[[{{fullurl:{{#switch: Gregorian serial date
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Gregorian serial date/doc

}}|action=edit}} edit]] [purge]

   |[[{{fullurl:{{#switch: Gregorian serial date
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Gregorian serial date/doc

}}|action=edit&preload=Template:Documentation/preload}} create]]

  }}
}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|50px Template documentation|Documentation}}}}
}}

{{#if:|{{{content}}}|{{#ifexist:{{#switch: Gregorian serial date

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Gregorian serial date/doc

}} | {{ {{#switch: Gregorian serial date

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Gregorian serial date/doc

}} }} }}}}