import calendar
import time


def build_filename(option, quarter):
    """
    Function to build filename based on current day and month
    :return: Name of the file. Example: 'teacher_q1_timestamp'
    """
    timestamp = calendar.timegm(time.gmtime())
    underscore = "_"
    name = [option, underscore, "q" + str(quarter), underscore, str(timestamp)]
    return "".join(name)