Work in progress — This wiki is an active migration / mirror of Homestar Runner Wiki and is not finished yet. Account registration and public editing are turned off until the migration is further along. For status updates, see the migration thread on the forums.

Template:hmss: Difference between revisions

From HR Wiki Twice
Jump to navigationJump to search
imported>HRWikiMirrorBot
Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)
 
imported>HRWikiMirrorBot
Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)
 
Line 1: Line 1:
<!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine -->
<!-- Wayback HTML body (hrwiki.org); RawHtml -->
{{{1}}}
<html>
'''Convert Hours+Minutes+Seconds (HH:MM:SS) to Seconds'''
<p>{{{1}}}
 
<b>Convert Hours+Minutes+Seconds (HH:MM:SS) to Seconds</b>
* This template takes an input in Hours, Minutes, and Seconds, and returns the total number of seconds represented by that time period.
</p>
** That is, 60 seconds in a minute, and 60 minutes in an hour.
<ul><li> This template takes an input in Hours, Minutes, and Seconds, and returns the total number of seconds represented by that time period.
* Note that both Hours and Minutes are optional.
<ul><li> That is, 60 seconds in a minute, and 60 minutes in an hour.
 
</li></ul>
'''Usage:'''
</li><li> Note that both Hours and Minutes are optional.
 
</li></ul>
* The template may be used one of three ways.
<p><b> Usage:</b>
* {{ hmss | ''hours'' | ''minutes'' | ''seconds'' }}
</p>
* {{ hmss | ''minutes'' | ''seconds'' }}
<ul><li> The template may be used one of three ways.
* {{ hmss | ''seconds'' }}
</li><li> <code>{{ hmss | <i>hours</i> | <i>minutes</i> | <i>seconds</i> }}</code>
* The last entry is redundant, but left for completeness.
</li><li> <code>{{ hmss | <i>minutes</i> | <i>seconds</i> }}</code>
 
</li><li> <code>{{ hmss | <i>seconds</i> }}</code>
'''Examples:'''
</li><li> The last entry is redundant, but left for completeness.
 
</li></ul>
<p><b> Examples:</b>
</p>
<pre>
<pre>
* {{hmss|30}}
* {{hmss|30}}
Line 34: Line 36:
* {{hmss|10|00|00}}
* {{hmss|10|00|00}}
</pre>
</pre>
<p><b>Yields:</b>
</p>
<ul><li> 30
</li><li> 59
</li><li> 60
</li><li> 90
</li><li> 119
</li><li> 120
</li><li> 600
</li><li> 1800
</li><li> 3540
</li><li> 3599
</li><li> 3600
</li><li> 3601
</li><li> 5400
</li><li> 7200
</li><li> 36000
</li></ul>


'''Yields:'''


* 30
* 59
<div class="visualClear"></div>
* 60
</html>
* 90
* 119
* 120
* 600
* 1800
* 3540
* 3599
* 3600
* 3601
* 5400
* 7200
* 36000
[[Category:Date and Time Formatting Templates]]



Latest revision as of 21:00, 18 July 2026

{{{1}}} Convert Hours+Minutes+Seconds (HH:MM:SS) to Seconds

  • This template takes an input in Hours, Minutes, and Seconds, and returns the total number of seconds represented by that time period.
    • That is, 60 seconds in a minute, and 60 minutes in an hour.
  • Note that both Hours and Minutes are optional.

Usage:

  • The template may be used one of three ways.
  • {{ hmss | hours | minutes | seconds }}
  • {{ hmss | minutes | seconds }}
  • {{ hmss | seconds }}
  • The last entry is redundant, but left for completeness.

Examples:

* {{hmss|30}}
* {{hmss|59}}
* {{hmss|1|00}}
* {{hmss|1|30}}
* {{hmss|1|59}}
* {{hmss|2|00}}
* {{hmss|10|00}}
* {{hmss|30|00}}
* {{hmss|59|00}}
* {{hmss|59|59}}
* {{hmss|1|00|00}}
* {{hmss|1|00|01}}
* {{hmss|1|30|00}}
* {{hmss|2|00|00}}
* {{hmss|10|00|00}}

Yields:

  • 30
  • 59
  • 60
  • 90
  • 119
  • 120
  • 600
  • 1800
  • 3540
  • 3599
  • 3600
  • 3601
  • 5400
  • 7200
  • 36000