import time


def get_time_str() -> str:
    """Generate a string using the current time.

    Returns
    -------
    ret: str
        A string in <year><month><day>-<hour><min> format.
    """
    curr_time = time.gmtime()
    return "{y:04d}{M:02d}{d:02d}-{h:02d}{m:02d}".format(
        y=curr_time.tm_year,
        M=curr_time.tm_mon,
        d=curr_time.tm_mday,
        h=curr_time.tm_hour,
        m=curr_time.tm_min,
    )