Fyrimynd:Deg2HMS
Appearance
0:0:0
Description
[rætta wikitekst]This template converts a decimal degree value, typically right ascension, to hours:minutes:seconds format or to hoursh minutesm secondss format.
Usage
[rætta wikitekst]{{Deg2HMS|decimaldegrees|p=precision|sup=superscripts}}
.
Parameter p is optional and defaults to 3.
Parameter sup is optional and defaults to not-used, <blank>, or <null>. It is activated by "yes", or any text.
For example:
{{Deg2HMS|266.416837|p=4}}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup= }}
returns 17:45:40.0409.
{{Deg2HMS|266.416837|p=4|sup=yes}}
returns 17h 45m 40.0409s.
{{Deg2HMS|266.416837|p=4|sup=y}}
returns 17h 45m 40.0409s.
{{Deg2HMS|266.416837|p=4|sup=no}}
returns 17h 45m 40.0409s.
See also
[rætta wikitekst]Dokumentatiónin omanfyri er tikin frá Fyrimynd:Deg2HMS/doc. (rætta | søga) Editors can experiment in this template's sandkassi (upprætta | mirror) and testcases (upprætta) pages. Please add categories to the /doc subpage. Undirsíður til hesa/hetta fyrimyndina. |