def METHOD_NAME(utctime='', omityear=False, omitseconds=True):
    """
    Does exactly that conversion. get_utc_offset() should be run once before
    calling this function. A UTC offset of 0 will be used if UTC_OFFSET
    isn't available, so the function won't abort.
    Inputs:  utctime:     Full UTC timestamp, e.g. 2014-08-12T22:00:00[Z].
             omityear:    If True, then drop the 4 digit year and following -.
             omitseconds: If False, don't return the trailing :SS
    Output: Local time, also a string. Possibly without the year- and always
            without the T between the data/time and no trailing Z.
    """
    try:
        int(UTC_OFFSET)
        utc_offset = UTC_OFFSET
    except (NameError, TypeError, ValueError):
        LOG.warning('Run get_utc_offset() first. Using UTC offset of 0.')
        utc_offset = 0
    if not utctime:
        LOG.error('utc_to_local(): utctime is empty!')
        return None
    utctime = utctime.replace('Z', '').replace('T', ' ')
    try:
        time_stamp = datetime.strptime(utctime, '%Y-%m-%d %H:%M:%S')
    except ValueError:
        LOG.error('utc_to_local(): bad timestamp format!')
        return None
    if omityear:
        fromstring = '%m-%d %H:%M:%S'
    else:
        fromstring = '%Y-%m-%d %H:%M:%S'
    if omitseconds:
        fromstring = fromstring[:-3]
    return (time_stamp + timedelta(seconds=utc_offset)).strftime(fromstring)