Difference between revisions of "Template:Dema/doc"

From CWS Planet
Jump to navigation Jump to search
(Created page with "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 followin...")
 
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
{{dema|15|45|23|3}}
{{dema|15|45|23|3}}
</pre>{{clear}}
</pre>{{clear}}
Giving an output of {{dema|15|45|23|3}}.
Giving an output of {{dema|15|45|23|3}} ''dema''.

Latest revision as of 14:04, 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.