所有方法 静态方法 具体方法
| 限定符和类型 |
方法和说明 |
static long |
diffDays(Date t1,
Date t2) |
static long |
diffDays(TemporalAccessor t1,
TemporalAccessor t2) |
static long |
diffHours(Date t1,
Date t2) |
static long |
diffHours(TemporalAccessor t1,
TemporalAccessor t2) |
static long |
diffMillis(Date t1,
Date t2) |
static long |
diffMillis(TemporalAccessor t1,
TemporalAccessor t2) |
static long |
diffMinutes(Date t1,
Date t2) |
static long |
diffMinutes(TemporalAccessor t1,
TemporalAccessor t2) |
static int |
diffMonths(Date t1,
Date t2) |
static int |
diffMonths(TemporalAccessor t1,
TemporalAccessor t2) |
static long |
diffNanos(TemporalAccessor t1,
TemporalAccessor t2) |
static long |
diffSeconds(Date t1,
Date t2) |
static long |
diffSeconds(TemporalAccessor t1,
TemporalAccessor t2) |
static int |
diffYears(Date t1,
Date t2) |
static int |
diffYears(TemporalAccessor t1,
TemporalAccessor t2) |
static String |
format(String format,
Date date) |
static String |
format(String format,
TemporalAccessor temporal) |
static String |
formatDefault(Date date) |
static String |
formatDefault(LocalDateTime localDateTime) |
static String |
formatDefault(TemporalAccessor temporal) |
static DateTimeFormatter |
getFormatter(String formatterStr) |
static Instant |
now() |
static Date |
nowDate() |
static String |
nowStr() |
static TemporalAccessor |
parse(String valueStr) |
static TemporalAccessor |
parse(String format,
String temporal) |
static Date |
parseDate(String valueStr) |
static Date |
parseDate(String format,
String temporal) |
static LocalDate |
parseLocalDate(String valueStr) |
static LocalDate |
parseLocalDate(String format,
String temporal) |
static LocalDateTime |
parseLocalDateTime(String valueStr) |
static LocalDateTime |
parseLocalDateTime(String format,
String temporal) |
static LocalTime |
parseLocalTime(String valueStr) |
static LocalTime |
parseLocalTime(String format,
String temporal) |
static Date |
toDate(Instant instant) |
static Date |
toDate(LocalDate localDate) |
static Date |
toDate(LocalDateTime localDateTime) |
static Date |
toDate(long mills) |
static Date |
toDate(TemporalAccessor temporal) |
static Instant |
toInstant(Date date) |
static Instant |
toInstant(LocalDate localDate) |
static Instant |
toInstant(LocalDateTime localDateTime) |
static Instant |
toInstant(long mills) |
static Instant |
toInstant(TemporalAccessor temporal) |
static LocalDate |
toLocalDate(Date date) |
static LocalDate |
toLocalDate(long mills) |
static LocalDate |
toLocalDate(TemporalAccessor temporal) |
static LocalDateTime |
toLocalDateTime(Date date) |
static LocalDateTime |
toLocalDateTime(long mills) |
static LocalDateTime |
toLocalDateTime(TemporalAccessor temporal) |
static LocalTime |
toLocalTime(Date date) |
static LocalTime |
toLocalTime(long mills) |
static LocalTime |
toLocalTime(TemporalAccessor temporal) |
static long |
toMills(Date date) |
static long |
toMills(Instant instant) |
static long |
toMills(LocalDateTime localDateTime) |
static long |
toMills(TemporalAccessor temporal) |