quarter property
int
quarter
Returns quarter of the year.
Jan,Feb,Mar is Q1
Apr,May,Jun is Q2
Jul,Aug,Sep is Q3
Oct,Nov,Dec is Q4
Implementation
int get quarter => (month - 1) ~/ 3 + 1;
Returns quarter of the year.
Jan,Feb,Mar is Q1
Apr,May,Jun is Q2
Jul,Aug,Sep is Q3
Oct,Nov,Dec is Q4
int get quarter => (month - 1) ~/ 3 + 1;