What does ‘on the rag’ mean?

( pp ) Having one’s menstrual period. I’m not in the mood; I am on my rag.