Converts milliseconds since epoch to the year.
static int toYear(int timeMills) { return DateTime.fromMillisecondsSinceEpoch(timeMills).year; }