Template:Dema/doc

From CWS Planet
< Template:Dema
Revision as of 13:59, 11 July 2020 by Vis (talk | contribs)
Jump to navigation Jump to search

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.652dema.