टेम्पलेट:Time ago: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
created |
Trying to simplify template design |
||
लाइन 1:
{{#switch:
{{#ifexpr: abs({{#time:U}}-{{#time:U|
| 0
| {{#expr: trunc( 1.4427 * ln( ({{#time:U}}-{{#time:U|
}}
|0 <!-- <
|1 <!-- <
|2 <!-- <
|3 <!-- < 90 min --> = {{#time: G:i|{{{1|}}} }} ({{#expr: ({{#time:U}} - {{#time:U|{{{1|}}}}})/60 round 0 }} minutes ago)▼
|4 <!-- <
|5 <!-- <
|6 <!-- <
|7 <!-- <
|8 <!-- <
▲|
▲|9 <!-- < 4 days -->
|10<!-- <
|11<!-- < 4 days -->
|12<!-- < 8 days --> = {{#time:l|{{{1|}}}}}
|default= {{#expr: ({{#time:U}} - {{#time:U|{{{1|}}}}})/604800 round 0 }} weeks ago
}}<noinclude>
{{documentation|content=
{{tl|{{PAGENAME}}}} calculates dates and times since an event has passed.
== Examples ==
* {{Time ago|{{#time: r |-14 minutes}}}} <br/>→<span style="background:white;">{{Time ago|-14 minutes}}</span>
*
*
*
*
*
}}</noinclude>
|