@Test public void checkConversionFileTime() throws IOException { final File file = ResourcesPublicUtilTest.getInstance().getGuidTestPropertiesFile(); if (file == null) { LOGGER.error(ResourcesPublicUtilTest.CANNOT_FIND_RESOURCES_TEST_FILE); } Assume.assumeTrue(ResourcesPublicUtilTest.CANNOT_FIND_RESOURCES_TEST_FILE, file != null); assertNotNull(LocalDateUtil.fromDate(Files.getLastModifiedTime(file.toPath()))); }
public static LocalDateTime fromDate(Date date) { if (date == null) { return now(); } return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC); }
LocalDateUtil { public static LocalDateTime fromDate(Date date) { if (date == null) { return now(); } return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC); } }
LocalDateUtil { public static LocalDateTime fromDate(Date date) { if (date == null) { return now(); } return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC); } private  LocalDateUtil(); }
LocalDateUtil { public static LocalDateTime fromDate(Date date) { if (date == null) { return now(); } return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC); } private  LocalDateUtil(); static final String getString(LocalDateTime localDateTime); static final String getStringFormatted(LocalDateTime localDateTime); static String getString(Date date); static LocalDateTime now(); static Date getDate(String date); static LocalDateTime fromMillis(long millis); static long getMillis(LocalDateTime ldt); static LocalDateTime fromDate(Date date); static LocalDateTime fromDate(FileTime fileTime); static Date getDate(LocalDateTime ldt); static String getFormattedDate(Date date); static String getFormattedDate(LocalDateTime date); static String getFormattedSimpleDate(Date date); static String getFormattedSimpleDate(LocalDate date); static Date getSimpleFormattedDate(final String date); static LocalDate getLocalDateFromSimpleFormattedDate(String date); static String getFormattedDateForMongo(String date); static String transformIsoOffsetDateToIsoOffsetDateTime(String date); static String getFormattedDateForMongo(LocalDateTime date); static LocalDateTime parseMongoFormattedDate(String str); static String getFormattedDateForEsIndexes(LocalDateTime date); static DateTimeFormatter getDateTimeFormatterForFileNames(); }
LocalDateUtil { public static LocalDateTime fromDate(Date date) { if (date == null) { return now(); } return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC); } private  LocalDateUtil(); static final String getString(LocalDateTime localDateTime); static final String getStringFormatted(LocalDateTime localDateTime); static String getString(Date date); static LocalDateTime now(); static Date getDate(String date); static LocalDateTime fromMillis(long millis); static long getMillis(LocalDateTime ldt); static LocalDateTime fromDate(Date date); static LocalDateTime fromDate(FileTime fileTime); static Date getDate(LocalDateTime ldt); static String getFormattedDate(Date date); static String getFormattedDate(LocalDateTime date); static String getFormattedSimpleDate(Date date); static String getFormattedSimpleDate(LocalDate date); static Date getSimpleFormattedDate(final String date); static LocalDate getLocalDateFromSimpleFormattedDate(String date); static String getFormattedDateForMongo(String date); static String transformIsoOffsetDateToIsoOffsetDateTime(String date); static String getFormattedDateForMongo(LocalDateTime date); static LocalDateTime parseMongoFormattedDate(String str); static String getFormattedDateForEsIndexes(LocalDateTime date); static DateTimeFormatter getDateTimeFormatterForFileNames(); static final String LONG_SECOND_DATE_FORMAT; }