from pathlib import Path
from datetime import datetime


def create_experiment_dir(path_to_exp: Path) -> Path:
    """Create a experiment dir to save results.

    Args:
        path_to_exp (Path): Path to the experiments dir.
    
    Returns:
        Path: The path to the new dir.
    """
    fname = datetime.now().strftime('%m-%d-%Y/%H_%M_%S')
    dir_path = path_to_exp.joinpath(fname)
    dir_path.mkdir(parents=True, exist_ok=False)
    return dir_path