Bem-vindo à Club Penguin Wiki! Faça uma conta e junte-se à comunidade!
Predefinição:Gregorian serial date: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Criou nova página com '{{#expr: <!--Days from all years past:--> + (({{{year|{{CURRENTYEAR}}}}} - 1) * 365) + ((({{{year|{{CURRENTYEAR}}}}} - 1) - (({{{year|{{CURRENTY...' |
Sem resumo de edição |
||
Linha 2: | Linha 2: | ||
<!--Days from all years past:--> | <!--Days from all years past:--> | ||
+ (({{{ | + (({{{ano|{{CURRENTYEAR}}}}} - 1) * 365) | ||
+ ((({{{ | + ((({{{ano|{{CURRENTYEAR}}}}} - 1) - (({{{ano|{{CURRENTYEAR}}}}} - 1) mod 4)) / 4) <!--add a day for every leap--> | ||
- ((({{{ | - ((({{{ano|{{CURRENTYEAR}}}}} - 1) - (({{{ano|{{CURRENTYEAR}}}}} - 1) mod 100)) / 100) <!--subtract 100 year exception--> | ||
+ ((({{{ | + ((({{{ano|{{CURRENTYEAR}}}}} - 1) - (({{{ano|{{CURRENTYEAR}}}}} - 1) mod 400)) / 400) <!--readd 400 year exception--> | ||
<!--Days so far this year:--> | <!--Days so far this year:--> | ||
+ {{ #ifexpr: <!--add days for past months this year--> <!--Gives 1 or 2 extra days because of February--> | + {{ #ifexpr: <!--add days for past months this year--> <!--Gives 1 or 2 extra days because of February--> | ||
({{{ | ({{{mês|{{CURRENTMONTH}}}}} - 1) < 8 | ||
| ( ({{{ | | ( ({{{mês|{{CURRENTMONTH}}}}} - 1) * 30.5 round 0) | ||
| ( ({{{ | | ( ({{{mês|{{CURRENTMONTH}}}}} - 1) * 30.5 + 0.9 round 0 ) | ||
}} | }} | ||
- {{ #ifexpr: ({{{month|{{CURRENTMONTH}}}}} <= 2) | 0 | | - {{ #ifexpr: ({{{month|{{CURRENTMONTH}}}}} <= 2) | 0 | | ||
{{ #ifexpr: <!-- if leap year --> | {{ #ifexpr: <!-- if leap year --> | ||
({{{ | ({{{ano|{{CURRENTYEAR}}}}} / 4) = ({{{ano|{{CURRENTYEAR}}}}} / 4 round 0) <!--If divisible by 4--> | ||
and ({{{ | and ({{{ano|{{CURRENTYEAR}}}}} / 100 != {{{ano|{{CURRENTYEAR}}}}} / 100 round 0) <!--and not by 100--> | ||
| 1 | 2 | | 1 | 2 | ||
}} | }} | ||
}} | }} | ||
+ {{ #ifexpr: ({{{ | + {{ #ifexpr: ({{{mês|{{CURRENTMONTH}}}}} <= 2) | 0 | | ||
{{ #ifexpr: <!--400 year exception--> | {{ #ifexpr: <!--400 year exception--> | ||
({{{ | ({{{ano|{{CURRENTYEAR}}}}} / 400) = ({{{ano|{{CURRENTYEAR}}}}} / 400 round 0) | ||
| 1 | 0 | | 1 | 0 | ||
}} | }} | ||
}} | }} | ||
+ {{{ | + {{{dia|{{CURRENTDAY}}}}} | ||
}}{{#ifexpr: {{{ | }}{{#ifexpr: {{{ano|{{CURRENTYEAR}}}}} < 1 | | ||
_ERROR - Can not handle dates before January 1, 1 A.D. | _ERROR - Can not handle dates before January 1, 1 A.D. | ||
}} | }} |
Edição das 15h41min de 3 de abril de 2012
739393