public class LocalDateTimeUtils extends Object
| 构造器和说明 |
|---|
LocalDateTimeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
getInterval(LocalDateTime startTime,
LocalDateTime endTime)
获取两个时间的时间差(分钟)
|
static long |
getInterval(LocalDateTime startTime,
LocalDateTime endTime,
int type)
获取两个时间的时间差(分钟)
|
static boolean |
isBeforeNow(LocalDateTime time)
判断目标时间是否在当前时间之前(以分钟计算)
|
static boolean |
isBeforeNow(LocalDateTime time,
int type)
判断目标时间是否在当前时间之前(以分钟计算)
|
public static boolean isBeforeNow(LocalDateTime time)
time - public static boolean isBeforeNow(LocalDateTime time, int type)
time - type - 0表示天数 1表示小时 2表示秒 其他表示分钟public static long getInterval(LocalDateTime startTime, LocalDateTime endTime)
startTime - endTime - public static long getInterval(LocalDateTime startTime, LocalDateTime endTime, int type)
startTime - endTime - type - 0表示天数 1表示小时 2表示秒 其他表示分钟Copyright © 2019-Now–2019. All rights reserved.