Template:Gregorian serial date

From ETCwiki
Jump to navigationJump to search

{{#expr:

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

       + {{ #ifexpr:    Template:Void Template:Void
                    (12 - 1) < 8 
                    | ( (12 - 1) * 30.5 round 0) 
                    | ( (12 - 1) * 30.5 + 0.9 round 0 ) 
         }} 
       - {{ #ifexpr: (12 <= 2) | 0 |  
            {{ #ifexpr:    Template:Void
                    (2019 / 4) = (2019 / 4 round 0)          Template:Void
                     and (2019 / 100 != 2019 / 100 round 0)  Template:Void
               | 1 | 2 
            }}
         }}
       + {{ #ifexpr: (12 <= 2) | 0 |
            {{ #ifexpr: Template:Void
                    (2019 / 400) = (2019 / 400 round 0) 
               | 1 | 0 
            }}
         }} 
       + 1
}}{{#ifexpr: 2019 < 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

}} }} }}}}