टेम्पलेट:Time ago: रिवीजन सभ के बीचा में अंतर

विकिपीडिया से
Content deleted Content added
imported>Happy-melon
overhaul
imported>Happy-melon
fix
लाइन 1: लाइन 1:
{{#switch: <!--WHAT 'ORDER OF MAGNITUDE' IS THE OFFSET?-->
{{#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|}}} }} ) / 60 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 3600 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|}}} }} ) / 86400 round 0 | 1 | 0 }}+
{{#ifexpr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 2678400 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|}}} }} ) }} seconds
| 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
| 1 <!--LESS THAN AN HOUR--> = {{#expr: abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) }} minutes

17:39, 19 अप्रैल 2009 तक ले भइल बदलाव

' time

टेम्पलेट बिबरनलेख

{{Time ago}} calculates dates and times since an event has passed.

Examples

  • {{Time ago|Thu, 18 Apr 2024 18:58:54 +0000}}
    ago
  • {{Time ago|Thu, 18 Apr 2024 16:58:54 +0000}}
    ago
  • {{Time ago|-500 minutes}}
    ago
  • {{Time ago|Jan 21, 2001 3:45 PM}}
    ago
  • {{Time ago|Oct 18 2008}}
    ago
  • {{Time ago|Nov 7 2008 3:45 PM}}
    ago