drmIsExpired static method

bool drmIsExpired(
  1. int from,
  2. int to
)

Implementation

static bool drmIsExpired(int from, int to) {
  if (from == 0 || to == mobiNotSet) {
    return false;
  }
  final now = (DateTime.now().millisecondsSinceEpoch / 60000).floor();
  if (now < from || now > to) {
    return true;
  }
  return false;
}