String minToHourStr(int i) { var h = i ~/ 60; var m = i % 60; return "${h.toString().padLeft(2, "0")}:${m.toString().padLeft(2, "0")}"; }