Template:Time ago: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Happy-melon
m Protected Template:Time ago: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite))
meta>MSGJ
use of unit before using next highest unit, see talk
Line 1: Line 1:
{{#switch:
{{#switch:
   {{#expr: <!--WHAT 'ORDER OF MAGNITUDE' IS THE OFFSET?-->
   {{#expr: <!--WHAT 'ORDER OF MAGNITUDE' IS THE OFFSET?-->
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 60      ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120      ) | 1 | 0 }}+
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 3600     ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200     ) | 1 | 0 }}+
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 86400    ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800  ) | 1 | 0 }}+
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 2678400 ) | 1 | 0 }}+
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800 ) | 1 | 0 }}+
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 31557600 ) | 1 | 0 }}
  {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }}
   }}
   }}
  | 0 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 1        ) }} seconds
  | 0 = {{#expr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 1        ) }} seconds

Revision as of 21:35, 3 June 2009

0 seconds' time