Пример #1
0
 public static bool IsPastTime(long timeMillis, int leewayMs)
 {
     AssertUtils.AssertTrue(leewayMs >= 0);
     return(CurrentTimeMillis + leewayMs >= timeMillis);
 }
Пример #2
0
 public static bool IsFutureTime(long timeMillis, int leewayMs)
 {
     AssertUtils.AssertTrue(leewayMs >= 0);
     return(CurrentTimeMillis - leewayMs < timeMillis);
 }