模板:Deg2HMS
跳转到导航
跳转到搜索
0:0:0
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
参数及使用方法[编辑]
{{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.
范例[编辑]
{{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.