Template:Time: Difference between revisions

From PBARC
No edit summary
No edit summary
Line 1: Line 1:
{{{1}}}:{{{2}}} (
{{{1}}}:{{{2}}} (
     {{#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 }}}}}})
     {{#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 18:20, 15 March 2023

{{{1}}}:{{{2}}} (

   Expression error: Unrecognized punctuation character "{". 

)