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

hn
imported>Happy-melon
(fix?)
imported>Happy-melon
(hn)
{{#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 }}
}}
| 0 <!--LESS THAN A MINUTE--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 1 }} seconds
| 1 <!--LESS THAN AN HOUR--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 60 }} minutes
| 2 <!--LESS THAN A DAY--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 3600 }} hours
| 3 <!--LESS THAN A MONTH--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 86400 }} days
| 4 <!--OVER A MONTH--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 2678400 }} months
 
}}{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) | &#32;ago | ' time }}<noinclude>
नामालूम प्रयोगकर्ता