@Test public void checkCurrentTime() throws InterruptedException { OffsetDateTime firstTimeStamp = DateUtils.createCurrentDateTimestamp(); TimeUnit.SECONDS.sleep(1); OffsetDateTime currentDateTimestamp = DateUtils.createCurrentDateTimestamp(); assertTrue(currentDateTimestamp.isAfter(firstTimeStamp)); assertTrue(firstTimeStamp.isBefore(currentDateTimestamp)); }
public static OffsetDateTime createCurrentDateTimestamp() { return OffsetDateTime.now(ZoneOffset.UTC); }
DateUtils { public static OffsetDateTime createCurrentDateTimestamp() { return OffsetDateTime.now(ZoneOffset.UTC); } }
DateUtils { public static OffsetDateTime createCurrentDateTimestamp() { return OffsetDateTime.now(ZoneOffset.UTC); } private  DateUtils(); }
DateUtils { public static OffsetDateTime createCurrentDateTimestamp() { return OffsetDateTime.now(ZoneOffset.UTC); } private  DateUtils(); static OffsetDateTime createCurrentDateTimestamp(); static String createCurrentDateString(String format); static String formatDate(OffsetDateTime date, String format); static OffsetDateTime fromDateUTC(Date date); static OffsetDateTime parseDate(String dateTime, String format); }
DateUtils { public static OffsetDateTime createCurrentDateTimestamp() { return OffsetDateTime.now(ZoneOffset.UTC); } private  DateUtils(); static OffsetDateTime createCurrentDateTimestamp(); static String createCurrentDateString(String format); static String formatDate(OffsetDateTime date, String format); static OffsetDateTime fromDateUTC(Date date); static OffsetDateTime parseDate(String dateTime, String format); static final String DOCKER_DATE_FORMAT; static final String AUDIT_DATE_FORMAT; static final String UTC_DATE_FORMAT_TO_MINUTE; }