Difference between revisions of "Template:Time ago/core"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{#ifexpr:{{#time:U}}>={{#time:U|{{{time|}}}}} |
− | + | |{{#switch:{{max|{{{min_magnitude_num|-1}}}|{{{auto_magnitude_num|0}}}}} | |
− | + | |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}} | |
− | + | |2 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/3600)}}|hour|hours}} | |
− | |1 = 60 | + | |3 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/86400)}}|day|days}} |
− | |2 = 3600 | + | |4 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/604800)}}|week|weeks}} |
− | |3 = 86400 | + | |5 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/2678400)}}|month|months}} |
− | |4 = 604800 | + | |6 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/31557600)}}|year|years}} |
− | |5 = 2678400 | + | }} {{{ago|ago}}} |
− | |6 = 31557600 | + | |{{#switch:{{max|{{{min_magnitude_num|-1}}}|{{{auto_magnitude_num|0}}}}} |
− | + | |0 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}}))}}|second's|seconds'}} | |
− | }} | + | |1 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/60)}}|minute's|minutes'}} |
− | + | |2 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/3600)}}|hour's|hours'}} | |
− | + | |3 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/86400)}}|day's|days'}} | |
− | + | |4 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/604800)}}|week's|weeks'}} | |
− | + | |5 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/2678400)}}|month's|months'}} | |
− | |1 = minute | + | |6 = {{plural|{{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/31557600)}}|year's|years'}} |
− | |2 = hour | + | }} time |
− | |3 = day | ||
− | |4 = week | ||
− | |5 = month | ||
− | |6 = | ||
− | |||
− | |||
− | |||
}} | }} |
Latest revision as of 15:32, 24 December 2012
0 seconds ago