Difference between revisions of "Time"

From Sega Retro

 
(One intermediate revision by one other user not shown)
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.
  
 
Example: <nowiki>{{time|3600}}</nowiki> becomes {{time|3600}}.
 
Example: <nowiki>{{time|3600}}</nowiki> becomes {{time|3600}}.
  
[[Category:Sega Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 18:01, 1 January 2022

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

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