What I want to do is figure out what X of the month this is, and returning the relative delta constant for it (Su Mo Tu...
). I have found many examples of jumping to a specific day of the month (1). For instance today is the 3rd Tuesday of December and I can get to it by doing this: + relativedelta(month=12, day=1, weekday=TU(3)))
but what I want to do is the opposite:
Put in today's date and subtract the first of the month and get something like TU(3)
or if it were the 4th wednesday to get: WE(4)
My ultimate goal is to then be able to transfer this constant to a different month or timedelta object and find the equivalent 3rd Tuesday, or 4th Wednesday, etc...