from datetime import datetime


def get_date_file_name(extension):
    """
    Format 'now' datetime and create file name
    with a given extension like this: 'YYYY_MM_DD hh_mm_ss.ext'
    """
    return "{}.{}".format(datetime.now().replace(microsecond=0), extension).replace(":", "_")