Template:Deg2HMS/doc

From blackwiki
< Template:Deg2HMS
Revision as of 03:12, 21 November 2014 by imported>Tom.Reding (Will try to add "h", "m", and "s" superscript capabilities in the future.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{Deg2HMS|decimaldegrees|p=precision}}.

This template converts a decimal degree value, typically right ascension, to hours:minutes:seconds format.

{{Deg2HMS|266.416837|p=4}} returns 17:45:40.0409.

Parameter p is optional, which defaults to 3.

See also