def get_sec(time):
    """ Convert given time into seconds

    Args:
        time ([str]): given time

    Returns:
        [int]: seconds regarding to the given time
    """
    m, s = time[-4:-2], time[-2:]
    if time[-4:2] == '' : m = 0
    if time[-2:] == '' : s = 0

    return int(m) * 60 + int(s)