def degTodms(ideg):
    """
    Converts degrees to degrees:minutes:seconds

    :param ideg: objects coordinate in degrees
    :type ideg: float

    :return: degrees:minutes:seconds
    :rtype: string
    """
    if (ideg < 0):
        s = -1
    else:
        s = 1
    ideg = abs(ideg)
    deg = int(ideg) + 0.
    m = 60. * (ideg - deg)
    minutes = int(m) + 0.
    seconds = 60. * (m - minutes)
    if s < 0:
        dms = "-%02d:%02d:%06.3f" % (deg, minutes, seconds)
    else:
        dms = "%02d:%02d:%06.3f" % (deg, minutes, seconds)
    return dms