-
Notifications
You must be signed in to change notification settings - Fork 24
DateTimeUtils
Erwin Feng edited this page Apr 29, 2020
·
3 revisions
format(Date date, String pattern)
format(LocalDateTime dateTime, String pattern)
format(Long timestamp, String pattern)
format(Instant instant, String pattern)
parseLocalDateTime(String dateTimeStr, String pattern)
parseInstant(String source, String pattern)
parseDate(String source, String pattern)
toMillisecond(Date date)
toMillisecond(LocalDateTime localDateTime)
toSecond(LocalDateTime localDateTime)
toLocalDateTime(Instant instant)
toInstant(Date date)
toLocalDateTime(Date date)
isBefore(LocalDateTime before, LocalDateTime after)
toLocalDateTime(Long timestamp)