Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Time: Difference between revisions

Template page
Zai (talk | contribs)
Created page with "<includeonly> {{#ifexpr:trunc({{#expr:({{{1|0}}}/1000/60/60)}})|{{padleft:{{#expr:trunc({{#expr:{{{1|0}}}/1000/60/60}})}}|2}}:}}{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000/60)mod60}})}}|2}}:{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000)mod60}})}}|2}}.{{#invoke:String|sub|{{padleft:{{{1|0}}}|3}}|-3}} </includeonly> <noinclude> == Usage == Enter the time in ms as parameter. Example: <pre> {{Time|12345}} </pre> will give {{Time|12345}} </noinclude>"
 
Zai (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#ifexpr:trunc({{#expr:({{{1|0}}}/1000/60/60)}})|{{padleft:{{#expr:trunc({{#expr:{{{1|0}}}/1000/60/60}})}}|2}}:}}{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000/60)mod60}})}}|2}}:{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000)mod60}})}}|2}}.{{#invoke:String|sub|{{padleft:{{{1|0}}}|3}}|-3}}</includeonly><noinclude>
{{#ifexpr:trunc({{#expr:({{{1|0}}}/1000/60/60)}})|{{padleft:{{#expr:trunc({{#expr:{{{1|0}}}/1000/60/60}})}}|2}}:}}{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000/60)mod60}})}}|2}}:{{padleft:{{#expr:trunc({{#expr:({{{1|0}}}/1000)mod60}})}}|2}}.{{#invoke:String|sub|{{padleft:{{{1|0}}}|3}}|-3}}
</includeonly>
<noinclude>
== Usage ==
== Usage ==
Enter the time in ms as parameter. Example:
Enter the time in ms as parameter. Example:

Latest revision as of 21:28, 25 January 2026

Usage[edit]

Enter the time in ms as parameter. Example:

{{Time|12345}}

will give 00:12.345

Contents