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.