zcash-grant-system/backend/grant/utils/date.py

6 lines
145 B
Python
Raw Normal View History

2018-09-10 09:55:26 -07:00
import math
2019-01-23 07:00:30 -08:00
2018-09-10 09:55:26 -07:00
def get_quarter_formatted(date):
2019-01-23 07:00:30 -08:00
return "Q" + str(math.ceil(date.date_created.month / 3.)) + " " + str(date.date_created.year)