Jump to: navigation, search

Differenze tra le versioni di "Template:Time ago"

m (Changed protection level for "Template:Time ago": reduce to semi, per request ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
 
m (1 revisioni importate)
 
(Nessuna differenza)

Versione attuale delle 06:30, 8 Lug 2009

{{#switch:

 {{#expr: 
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 120      ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 7200     ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 172800   ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 5356800  ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 63115200 ) | 1 | 0 }}
 }}
| 0 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 1        ) }} seconds
| 1 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 60       ) }} minutes
| 2 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 3600     ) }} hours
| 3 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 86400    ) }} days
| 4 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 2678400  ) }} months
| 5 = {{#expr: floor( abs( {{#time:U}} - {{#time:U|  }} ) / 31557600 ) }} years

}}{{#ifexpr: abs( {{#time:U}} - {{#time:U| }} ) | ago | ' time }}