Actions

Template

Difference between revisions of "Time"

From Sonic Retro

(Created page with "<includeonly>{{#expr: floor({{#expr: {{{1|0}}} div 60 }}) round 0 }}:{{#pad: {{#expr: {{{1|0}}} mod 60 }} | 2 | 0 | left }}</includeonly><noinclude> Convert a time in seconds...")
 
 
Line 4: Line 4:
 
Example: <nowiki>{{time|3600}}</nowiki> becomes {{time|3600}}.
 
Example: <nowiki>{{time|3600}}</nowiki> becomes {{time|3600}}.
  
[[Category:Sonic Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 19:18, 1 January 2022

Convert a time in seconds to the format M:SS or MM:SS.

Example: {{time|3600}} becomes 60:00.