Template:Time: Difference between revisions

From PBARC
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq: {{config|miltime}} | true |
{{#ifeq: {{config|miltime}} | true |
     {{{1}}}:{{{2}}} |  
     {{{1}}}:{{{2}}} |  
     {{#ifexpr: ({{{1}}} = 12) and ({{{2}}} = 00)|12:00 noon| {{#ifeq: {{#expr: {{{1}}} mod 12}} | 0 | 12 | {{#expr: {{{1}}} mod 12}}}}:{{{2}}} {{#ifexpr: {{{1}}} < 12|AM|PM }}}}
     {{#ifexpr: ({{{1}}} = 12) and ({{{2}}} = 00)|12:00 noon| {{#ifexpr: ({{{1}}} = 00) and ({{{2}}} = 00)|12:00 midnight| {{#ifeq: {{#expr: {{{1}}} mod 12}} | 0 | 12 | {{#expr: {{{1}}} mod 12}}}}:{{{2}}} {{#ifexpr: {{{1}}} < 12|AM|PM }}}}}}
}}
}}

Revision as of 14:43, 26 June 2022

Expression error: Unrecognized punctuation character "{".