foerderbarometer/input/utils/quarter.py

7 lines
136 B
Python
Raw Normal View History

2026-01-06 13:03:11 +00:00
def get_quarter(month: int):
return (month - 1) // 3 + 1
def get_quarter_label(month: int):
return 'Q%d' % get_quarter(month)