Difference between revisions of "Template:Time ago/core"
From Spherical
(created) |
(max) |
||
Line 1: | Line 1: | ||
{{#ifexpr:{{#time:U}}>={{#time:U|{{{time|}}}}} | {{#ifexpr:{{#time:U}}>={{#time:U|{{{time|}}}}} | ||
− | |{{#switch:{{max | + | |{{#switch:{{#max:{{{min_magnitude_num|-1}}}|{{{auto_magnitude_num|0}}}}} |
|0 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}}))}}|second|seconds}} | |0 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}}))}}|second|seconds}} | ||
|1 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/60)}}|minute|minutes}} | |1 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/60)}}|minute|minutes}} |
Latest revision as of 23:12, 13 June 2013
ago