Angular conversion from radians to hours, minutes, and seconds
rad2hms(rad = 1, places = 1)
Decimal radians
Number of decimal places in seconds term (0:6)
Fixed-format string with hours, minutes, and seconds separated by colons.
# NOT RUN {
rad2hms(2.44)
rad2hms(hms2rad(c('10:04:5.12', '27,04,5.3', '-3:0:0')), places=3)
rad2hms(266.5 * pi/180) # from degrees to hms
# }
Run the code above in your browser using DataLab