hour method

int hour([
  1. int? h
])

获取或设置小时。 接受0到23的数字。如果超过这个范围,将持续到日。

Implementation

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