forked from beba/foerderbarometer
7 lines
136 B
Python
7 lines
136 B
Python
|
|
def get_quarter(month: int):
|
||
|
|
return (month - 1) // 3 + 1
|
||
|
|
|
||
|
|
|
||
|
|
def get_quarter_label(month: int):
|
||
|
|
return 'Q%d' % get_quarter(month)
|