I am looking to convert a Python datetime object into a date and settlement period "closed left ".
In current method dt2sp, Settlement periods are considered to be only "closed right". It is helpful if we have "closed" parameter in dt2sp to choose "closed left" or "closed right" similar to one we have for sp2dt method.
Would appreciate any insights or fixes.