Difference between revisions of "Template:ISOdate"

From Self-sufficiency
Jump to: navigation, search
(allows use in phrases)
(fix for 'YYYY-MM' dates)
Line 16: Line 16:
 
}}
 
}}
 
}}
 
}}
| {{#switch: {{{1}}}
+
| {{#ifeq: {{padleft:{{{1}}}|8|#}} | #{{{1}}} | {{date| {{#expr: {{#time: Y | {{{1}}}-01 }} }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}}-01 }}}} || {{{2|}}} |form= {{{form|}}} }} | {{#switch: {{{1}}}
 
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:sZ| {{{1}}} }}
 
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:sZ| {{{1}}} }}
 
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:s| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} |form= {{{form|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}|{{#time: s | {{{1}}} }}|Z|lang= {{{2|}}} }} }}
 
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:s| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} |form= {{{form|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}|{{#time: s | {{{1}}} }}|Z|lang= {{{2|}}} }} }}
Line 36: Line 36:
 
|{{#time:Y| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} ||| {{{2|}}} |form= {{{form|}}} }}
 
|{{#time:Y| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} ||| {{{2|}}} |form= {{{form|}}} }}
 
|#default= {{{1}}}
 
|#default= {{{1}}}
 +
}}
 
}}
 
}}
 
}}
 
}}

Revision as of 19:58, 31 August 2009