Template:HMS2Deg

0

Template documentation[view] [edit] [history] [purge]

Description[edit]

This template converts an hour angle, given in hours:minutes:seconds format, to decimal degrees.

Usage[edit]

{}.

Hours is required. Minutes, seconds, parameter p, and parameter sup are all optional and default to 0, 0, 6, and <null>, respectively. To include the degree symbol °, add any text to |sup=.

For example:

{} returns 187.27792°.
{} returns 180.
{} returns 180.

See also[edit]