month method

int month([
  1. int? m
])

获取或设置月份。 接受1到12的数字。如果超过这个范围,将一直持续到年底。

Implementation

int month([int? m]) {
  if (m != null) {
    _date = DateTime($y, m, $D, $h, $m, $s, $ms);
  }
  return $M;
}