Template:TimeHMS: Difference between revisions

From Melvor Idle
(Created page with "Takes in a number of seconds and converts it into "X days, H:M:S" For example, {{T|Time|90135}} becomes {{Time|90135}}. This is a convenience function for Template:Time. This uses a function inside of Module:Common.<onlyinclude><includeonly>{{#invoke:common|prettyPrintTime|{{{1}}}|hms=true}}</includeonly></onlyinclude>")
 
(Use :Time instead of :Common)
Line 1: Line 1:
Takes in a number of seconds and converts it into "X days, H:M:S"
Takes in a number of seconds and converts it into "X days, H:M:S"
For example, {{T|Time|90135}} becomes {{Time|90135}}. This is a convenience function for [[Template:Time]].
For example, {{T|TimeHMS|90135}} becomes {{TimeHMS|90135}}. This is a convenience function for [[Template:Time]].


This uses a function inside of [[Module:Common]].<onlyinclude><includeonly>{{#invoke:common|prettyPrintTime|{{{1}}}|hms=true}}</includeonly></onlyinclude>
This uses a function inside of [[Module:Time]].<onlyinclude><includeonly>{{#invoke:Time|prettyPrintTime|{{{1}}}|hms=true}}</includeonly></onlyinclude>

Revision as of 20:06, 1 April 2024

Takes in a number of seconds and converts it into "X days, H:M:S" For example, {{TimeHMS|90135}} becomes Script error: The function "prettyPrintTime" does not exist.. This is a convenience function for Template:Time.

This uses a function inside of Module:Time.