from datetime import datetime


def get_time_str(time_in: datetime = datetime.now()) -> str:
    """
    Get time in string format.
    Args:
        time_in: datetime object to transform to string
    """
    return time_in.strftime("%Y%m%d_%H%M%S")