Add custom formatting options to python datetime class

110 views Asked by At

I'm trying to add custom formatting options to the python datetime class, specifically a %Q option that will output the quarter. I'm assuming this can be done by extending the datetime class but I'm not sure how to go about doing this, any ideas?

0

There are 0 answers