Difference between revisions of "Template:Dema"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#expr:((({{{1}}}*3600)+({{{2}}}*60)+{{{3}}})/864)round{{{4}}}}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 14:02, 11 July 2020
This template converts between hours, minutes and seconds to metric time on Sahar, measured in dema (roughly 14.4 minutes, or 1/100 of a day).
To use it, use the following format:
{{dema|hours|minutes|seconds|rounding}}
- rounding
- This parameter allows you to define the number of decimal places you want to have in the outputted time.
A value of 0 gives precision to the nearest 14.4 minutes, while a value of 3 gives precision to the nearest 0.864 seconds.
For example, if you wished to convert a time of 15:45:23 to 3 decimal places, you would input:
{{dema|15|45|23|3}}
Giving an output of 65.652
dema.