getNowFromMilliseconds static method

int getNowFromMilliseconds()

Implementation

static int getNowFromMilliseconds() {
  try {
    return DateTime.now().toUtc().millisecondsSinceEpoch;
  } on Exception catch (e) {
    print(e.toString());
    return 0;
  }
}