How to get the week number of the current quarter in Python?
问题 I've been through every question and every third party library trying to figure out a way to do this where I don't have to manually map dates. I'm trying to get the week number of the current fiscal quarter. Each quarter starts on the 1st of either January, April, July or October. Given a date (string or object, it doesn't matter), I need to be able to calculate the week number of the fiscal quarter that it's in. To make matters a little more complicated, the Fiscal year starts in April. So