generateKeyTime static method

String generateKeyTime(
  1. int startTimeMs,
  2. int expiredTimeMs
)

Implementation

static String generateKeyTime(int startTimeMs, int expiredTimeMs) {
  assert(expiredTimeMs > startTimeMs);

  final startTimestamp = startTimeMs ~/ 1000;
  final endTimestamp = expiredTimeMs ~/ 1000;

  return '$startTimestamp;$endTimestamp';
}