public final class TimeHelp extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static DateTimeFormatter |
DATE_PATTERN |
static DateTimeFormatter |
DATE_TIME_MILL_PATTERN |
static DateTimeFormatter |
DATE_TIME_PATTERN |
static DateTimeFormatter |
MONTH_PATTERN |
static DateTimeFormatter |
TIME_PATTERN |
static TimeZone |
TIME_ZONE |
static ZoneId |
ZONE_ID |
static ZoneOffset |
ZONE_OFFSET |
public static final DateTimeFormatter MONTH_PATTERN
public static final DateTimeFormatter DATE_PATTERN
public static final DateTimeFormatter TIME_PATTERN
public static final DateTimeFormatter DATE_TIME_PATTERN
public static final DateTimeFormatter DATE_TIME_MILL_PATTERN
public static final ZoneId ZONE_ID
public static final ZoneOffset ZONE_OFFSET
public static final TimeZone TIME_ZONE
public static LocalDateTime toLdt(Instant instant)
public static LocalDateTime toLdt(ZonedDateTime zdt)
public static LocalDateTime toLdt(Date date)
public static LocalDateTime toLdt(Number timestamp)
public static LocalDateTime toLdt(CharSequence cs)
public static LocalDateTime toLdt(LocalDate ld)
public static LocalDateTime toLdt(Object obj)
public static LocalTime toLt(CharSequence cs)
public static Instant toInstant(LocalDateTime ldt)
public static Instant toInstant(ZonedDateTime zdt)
public static Instant toInstant(CharSequence cs)
public static ZonedDateTime toZdt(LocalDateTime ldt)
public static ZonedDateTime toZdt(Instant instant)
public static ZonedDateTime toZdt(Date date)
public static ZonedDateTime toZdt(Number timestamp)
public static ZonedDateTime toZdt(CharSequence cs)
public static ZonedDateTime toZdt(LocalDate ld)
public static ZonedDateTime toZdt(Object obj)
public static Date toDate(LocalDateTime ldt)
public static Date toDate(ZonedDateTime zdt)
public static Date toDate(CharSequence cs)
public static Long toTimestamp(LocalDateTime ldt)
public static Long toTimestamp(ZonedDateTime zdt)
public static Long toTimestamp(CharSequence cs)
public static String format(LocalDateTime ldt, String pattern)
public static String format(LocalDateTime ldt)
public static String format(ZonedDateTime zdt, String pattern)
public static String format(ZonedDateTime zdt)
public static LocalDateTime exchange(LocalDateTime ldt, TimeZone src, TimeZone des)
public static LocalDateTime exchange(LocalDateTime ldt)
public static long between(ChronoUnit unit, Temporal t1, Temporal t2)
public static LocalDateTime morning(LocalDate ld)
public static LocalDateTime morning(LocalDateTime ldt)
public static LocalDateTime morning()
public static LocalDateTime morningLess(LocalDate ld)
public static LocalDateTime morningLess(LocalDateTime ldt)
public static LocalDateTime morningLess()
public static LocalDateTime morningMore(LocalDate ld)
public static LocalDateTime morningMore(LocalDateTime ldt)
public static LocalDateTime morningMore()
public static LocalDateTime midnight(LocalDate ld)
public static LocalDateTime midnight(LocalDateTime ldt)
public static LocalDateTime midnight()
public static boolean isLeap(int year)
public static int monthDays(boolean leapYear,
int month)
public static LocalDate monday()
Copyright © 2022. All rights reserved.