Lines Matching refs:TimeUnit
30 import java.util.concurrent.TimeUnit;
31 import static java.util.concurrent.TimeUnit.*;
40 long tomorrowInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) + 1;
41 long yesterdayInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) - 1;
64 // to(TimeUnit)
74 for (TimeUnit unit: TimeUnit.values()) {
125 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) {
131 static void eq(long v1, TimeUnit u1, long v2, TimeUnit u2) {
140 static void neq(long v1, TimeUnit u1, long v2, TimeUnit u2) {
147 static void to(long v, TimeUnit unit) {
149 for (TimeUnit u: TimeUnit.values()) {
158 static void ts(long v, TimeUnit unit, String expected) {