retrieveDeltaForMonth method

int retrieveDeltaForMonth(
  1. DateTime month
)

Returns the number of days to skip at the beginning of the month.

Implementation

int retrieveDeltaForMonth(final DateTime month) {
  DateTime firstDayOfMonth = DateTime(month.year, month.month, 1);
  return firstDayOfMonth.weekday % 7;
}