Converts a real number representing hours or degrees with a decimal fraction to hours-minutes-seconds format.