convertNewDayStyleToMillisecond function

int convertNewDayStyleToMillisecond(
  1. int time
)

Implementation

int convertNewDayStyleToMillisecond(int time) {
  final String timeString = time.toString();
  final int year = int.parse(timeString.substring(0, 4));
  final int month = int.parse(timeString.substring(4, 6));
  final int day = int.parse(timeString.substring(6, 8));
  return DateTime(year, month, day).millisecondsSinceEpoch;
}