@Test public void shouldNowUsesUTC() throws Exception { final long now = OffsetDateTime.now(UTC).toInstant().toEpochMilli(); final long actual = TimeUtils.now(); assertions.assertThat(actual).isBetween(now, now + 2_000); }
public static long now() { return offsetDateTimeNow().toInstant().toEpochMilli(); }
TimeUtils { public static long now() { return offsetDateTimeNow().toInstant().toEpochMilli(); } }
TimeUtils { public static long now() { return offsetDateTimeNow().toInstant().toEpochMilli(); }  }
TimeUtils { public static long now() { return offsetDateTimeNow().toInstant().toEpochMilli(); }  static long now(); static OffsetDateTime offsetDateTimeNow(); }
TimeUtils { public static long now() { return offsetDateTimeNow().toInstant().toEpochMilli(); }  static long now(); static OffsetDateTime offsetDateTimeNow();  }