"टेम्पलेट:Time ago" की अवतरण में अंतर

years
imported>Happy-melon
(fix)
imported>Happy-melon
(years)
{{#switch:
{{#expr: <!--WHAT 'ORDER OF MAGNITUDE' IS THE OFFSET?-->
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 60 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 3600 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 86400 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 2678400 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 31557600 round 0 | 1 | 0 }}
}}
| 0 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 1 ) }} seconds
| 1 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 60 ) }} minutes
| 2 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 3600 ) }} hours
| 3 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 86400 ) }} days
| 4 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 2678400 ) }} months
| 5 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 31557600 ) }} years
 
}}{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) | &#32;ago | ' time }}<noinclude>
नामालूम प्रयोगकर्ता