toMonth static method

int toMonth(
  1. int timeMills
)

Converts milliseconds since epoch to the month.

Implementation

static int toMonth(int timeMills) {
  return DateTime.fromMillisecondsSinceEpoch(timeMills).month;
}