def METHOD_NAME(maps, splitting):
    from datetime import datetime
    before = OrderedDic()
    after = OrderedDic()
    split = None
    if splitting.count("T") == 0:
        try:
            split = datetime.strptime(splitting, "%Y-%m-%d")
        except ValueError:
            pass
    else:
        try:
            split = datetime.strptime(splitting, "%Y-%m-%dT%H:%M:%S")
        except ValueError:
            pass
    if not split:
        gscript.fatal(
            _(
                "It is not possible to parse splittingday value. "
                "Please you one of the two supported format: "
                "'%Y-%m-%d' or '%Y-%m-%dT%H:%M:%S'"
            )
        )
    for mapp in maps:
        tempext = mapp.get_temporal_extent()
        raster = RasterRow(mapp.get_name())
        raster.open("r")
        array = np.array(raster)
        if tempext.start_time <= split:
            before[mapp.get_name()] = array
        else:
            after[mapp.get_name()] = array
    return before, after