import calendar


def format_timestamp(value, format='matchtime'):
    """Format textual timestamps into more readable timestamps."""
    if format == 'matchtime':
        # yyyy mm dd hh mm ss
        value = value.split('.')
        return "{} {} {}:{}".format(calendar.month_name[int(value[1])], int(value[2]), int(value[3]), value[4])
    elif format == 'shortmatchtime':
        value = value.split('.')
        return "{}/{} {}:{}".format(int(value[1]), int(value[2]), int(value[3]), value[4])
    elif format == 'hhmm':  # datetime hour/min
        value = value.split('.')
        return "{}:{}".format(value[4], value[5])