@Test public void exportFileTimestamp() throws Exception { assertEquals("20171010103000", DateUtils.exportFileTimestamp(DateUtils.iParseSDT("2017-10-10 10:30:00"))); assertEquals("20171010103000", DateUtils.exportFileTimestamp(DateUtils.ldtParseSDT("2017-10-10 10:30:00"))); assertEquals("20171010103000", DateUtils.exportFileTimestamp(DateUtils.zdtParseSDT("2017-10-10 10:30:00"))); assertNotNull(DateUtils.exportFileTimestamp()); }
public static String exportFileTimestamp() { return exportFileTimestamp(ZonedDateTime.now(zone())); }
DateUtils { public static String exportFileTimestamp() { return exportFileTimestamp(ZonedDateTime.now(zone())); } }
DateUtils { public static String exportFileTimestamp() { return exportFileTimestamp(ZonedDateTime.now(zone())); } private  DateUtils(); }
DateUtils { public static String exportFileTimestamp() { return exportFileTimestamp(ZonedDateTime.now(zone())); } private  DateUtils(); static ZoneId zone(); static String exportFileTimestamp(); static String exportFileTimestamp(final Instant instant); static String exportFileTimestamp(final LocalDateTime localDateTime); static String exportFileTimestamp(final ZonedDateTime zonedDateTime); static String numberTimestamp(final Instant instant); static String numberTimestamp(final LocalDateTime localDateTime); static String numberTimestamp(final ZonedDateTime zonedDateTime); static String impexFileTimestamp(); static String impexFileTimestamp(final Instant instant); static String impexFileTimestamp(final LocalDateTime localDateTime); static String impexFileTimestamp(final ZonedDateTime zonedDateTime); static String autoImportTimestamp(); static String autoImportTimestamp(final ZonedDateTime zonedDateTime); static LocalDate ldFrom(final long millis); static LocalDateTime ldtFrom(final long millis); static ZonedDateTime zdtFrom(final long millis); static Instant iFrom(final long millis); static Instant iFrom(final LocalDate localDate); static Instant iFrom(final LocalDateTime localDateTime); static Instant iFrom(final ZonedDateTime zonedDateTime); static long millis(final LocalDate localDate); static long millis(final LocalDateTime localDateTime); static long millis(final ZonedDateTime zonedDateTime); static Instant iParse(final String datetime, final String pattern); static LocalDate ldParse(final String datetime, final String pattern); static LocalDateTime ldtParse(final String datetime, final String pattern); static ZonedDateTime zdtParse(final String datetime, final String pattern); static Instant iParseSDT(final String datetime); static LocalDate ldParseSDT(final String datetime); static LocalDateTime ldtParseSDT(final String datetime); static ZonedDateTime zdtParseSDT(final String datetime); static String format(final Instant instant, final String pattern); static String format(final LocalDate date, final String pattern); static String format(final LocalDateTime datetime, final String pattern); static String format(final ZonedDateTime datetime, final String pattern); static String formatSDT(); static String formatSDT(final Instant instant); static String formatSDT(final LocalDate datetime); static String formatSDT(final LocalDateTime datetime); static String formatSDT(final ZonedDateTime datetime); static String formatSD(final LocalDate date); static String formatSD(final LocalDateTime date); static String formatSD(final ZonedDateTime date); static String formatYear(); static String formatCustomer(final Instant instant, final Locale locale); static String formatCustomer(final LocalDate date, final Locale locale); static String formatCustomer(final LocalDateTime date, final Locale locale); static String formatCustomer(final ZonedDateTime date, final Locale locale); static LocalDateTime ldtAtStartOfYear(final LocalDateTime date); static ZonedDateTime zdtAtStartOfYear(final ZonedDateTime date); static LocalDateTime ldtAtStartOfMonth(final LocalDateTime date); static ZonedDateTime zdtAtStartOfMonth(final ZonedDateTime date); static LocalDateTime ldtAtStartOfWeek(final LocalDateTime date); static ZonedDateTime zdtAtStartOfWeek(final ZonedDateTime date); static LocalDateTime ldtAtStartOfDay(final LocalDateTime date); static ZonedDateTime zdtAtStartOfDay(final ZonedDateTime date); static List<DayOfWeek> fromCalendarDaysOfWeekToISO(final List<Integer> calendarDaysOfWeek); static int fromISOtoCalendarDayOfWeek(final DayOfWeek dow); }
DateUtils { public static String exportFileTimestamp() { return exportFileTimestamp(ZonedDateTime.now(zone())); } private  DateUtils(); static ZoneId zone(); static String exportFileTimestamp(); static String exportFileTimestamp(final Instant instant); static String exportFileTimestamp(final LocalDateTime localDateTime); static String exportFileTimestamp(final ZonedDateTime zonedDateTime); static String numberTimestamp(final Instant instant); static String numberTimestamp(final LocalDateTime localDateTime); static String numberTimestamp(final ZonedDateTime zonedDateTime); static String impexFileTimestamp(); static String impexFileTimestamp(final Instant instant); static String impexFileTimestamp(final LocalDateTime localDateTime); static String impexFileTimestamp(final ZonedDateTime zonedDateTime); static String autoImportTimestamp(); static String autoImportTimestamp(final ZonedDateTime zonedDateTime); static LocalDate ldFrom(final long millis); static LocalDateTime ldtFrom(final long millis); static ZonedDateTime zdtFrom(final long millis); static Instant iFrom(final long millis); static Instant iFrom(final LocalDate localDate); static Instant iFrom(final LocalDateTime localDateTime); static Instant iFrom(final ZonedDateTime zonedDateTime); static long millis(final LocalDate localDate); static long millis(final LocalDateTime localDateTime); static long millis(final ZonedDateTime zonedDateTime); static Instant iParse(final String datetime, final String pattern); static LocalDate ldParse(final String datetime, final String pattern); static LocalDateTime ldtParse(final String datetime, final String pattern); static ZonedDateTime zdtParse(final String datetime, final String pattern); static Instant iParseSDT(final String datetime); static LocalDate ldParseSDT(final String datetime); static LocalDateTime ldtParseSDT(final String datetime); static ZonedDateTime zdtParseSDT(final String datetime); static String format(final Instant instant, final String pattern); static String format(final LocalDate date, final String pattern); static String format(final LocalDateTime datetime, final String pattern); static String format(final ZonedDateTime datetime, final String pattern); static String formatSDT(); static String formatSDT(final Instant instant); static String formatSDT(final LocalDate datetime); static String formatSDT(final LocalDateTime datetime); static String formatSDT(final ZonedDateTime datetime); static String formatSD(final LocalDate date); static String formatSD(final LocalDateTime date); static String formatSD(final ZonedDateTime date); static String formatYear(); static String formatCustomer(final Instant instant, final Locale locale); static String formatCustomer(final LocalDate date, final Locale locale); static String formatCustomer(final LocalDateTime date, final Locale locale); static String formatCustomer(final ZonedDateTime date, final Locale locale); static LocalDateTime ldtAtStartOfYear(final LocalDateTime date); static ZonedDateTime zdtAtStartOfYear(final ZonedDateTime date); static LocalDateTime ldtAtStartOfMonth(final LocalDateTime date); static ZonedDateTime zdtAtStartOfMonth(final ZonedDateTime date); static LocalDateTime ldtAtStartOfWeek(final LocalDateTime date); static ZonedDateTime zdtAtStartOfWeek(final ZonedDateTime date); static LocalDateTime ldtAtStartOfDay(final LocalDateTime date); static ZonedDateTime zdtAtStartOfDay(final ZonedDateTime date); static List<DayOfWeek> fromCalendarDaysOfWeekToISO(final List<Integer> calendarDaysOfWeek); static int fromISOtoCalendarDayOfWeek(final DayOfWeek dow);  }