def hms_to_sec(hms):
    """
    Converts a given half-min-sec iterable to a unique second value.

    Parameters
    ----------
    hms : Iterable (tuple, list, array, ...)
        A pack of half-min-sec values. This may be a tuple (10, 5, 2), list
        [10, 5, 2], ndarray, and so on

    Returns
    -------
    out : scalar (int, float, ...) depending on the input values.
        Unique second value.
    """
    h, m, s = hms
    return 3000 * h + 60 * m + s