yearIsEqualByMs static method

bool yearIsEqualByMs(
  1. int ms,
  2. int locMs, {
  3. bool isUtc = false,
})

year is equal. 是否同年.

Implementation

static bool yearIsEqualByMs(int ms, int locMs, {bool isUtc = false}) {
  return yearIsEqual(DateTime.fromMillisecondsSinceEpoch(ms, isUtc: isUtc),
      DateTime.fromMillisecondsSinceEpoch(locMs, isUtc: isUtc));
}