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

fix
imported>Happy-melon
(overhaul)
imported>Happy-melon
(fix)
{{#switch:
{{#switchexpr: <!--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|}}} }} ) / 360060 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 864003600 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 267840086400 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 60 2678400 round 0 | 1 | 0 }}+
}}
| 0 <!--LESS THAN A MINUTE--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) }} seconds
| 1 <!--LESS THAN AN HOUR--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) }} minutes
नामालूम प्रयोगकर्ता