public interface TimeAble
Modifier and Type | Method and Description |
---|---|
default Instant |
getInstantByMilli()
将时间视为毫秒值时间戳来获取
Instant 对象 |
default Instant |
getInstantBySec()
将时间时为秒值时间戳来获取
Instant 对象 |
Long |
getTime()
获取时间, 一般为秒类型的时间戳
|
default LocalDateTime |
getTimeByMilli()
将时间视为毫秒值时间戳来获取
LocalDateTime 对象 |
default LocalDateTime |
getTimeBySec()
将时间视为秒值时间戳来获取
LocalDateTime 对象 |
Long getTime()
default LocalDateTime getTimeBySec()
LocalDateTime
对象default LocalDateTime getTimeByMilli()
LocalDateTime
对象Copyright © 2020. All rights reserved.