Difference between revisions of "Time"

From Sega Retro

Line 1: Line 1:
<includeonly>{{#expr: floor({{#expr: {{{1|0}}} div 60 }}) round 0 }}:{{#pad: {{#expr: {{{1|0}}} mod 60 }} | 2 | 0 | left }}</includeonly><noinclude>
+
<includeonly>{{#expr: floor({{#expr: {{{1|0}}} div 60 }}) round 0 }}:{{padleft: {{#expr: {{{1|0}}} mod 60 }} | 2 | 0 }}</includeonly><noinclude>
 
Convert a time in seconds to the format M:SS or MM:SS.
 
Convert a time in seconds to the format M:SS or MM:SS.
  

Revision as of 23:49, 28 October 2019

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

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