month static method

String month(
  1. DateTime d, {
  2. bool short = true,
})

"Aug", or "August" with short: false — a month header, a wheel.

Implementation

static String month(DateTime d, {bool short = true}) {
  final name = _months[d.month - 1];
  return short ? name.substring(0, 3) : name;
}