added get_file_closest_to_datetime function