public class TimeUtil extends Object
| 构造器和说明 |
|---|
TimeUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
intervalDays(LocalDate endDate)
功能描述: 计算当前日期与指定日期的间隔天数
|
static long |
intervalDays(LocalDate startDate,
LocalDate endDate)
功能描述: 计算日期
startDate与endDate的间隔天数 |
static long |
intervalDays(ZonedDateTime endDate)
功能描述: 计算当前日期与指定日期的间隔天数
|
static long |
intervalDays(ZonedDateTime startDate,
ZonedDateTime endDate)
功能描述: 计算日期
startDate与endDate的间隔天数 |
public static long intervalDays(LocalDate endDate)
endDate - 指定日期public static long intervalDays(LocalDate startDate, LocalDate endDate)
startDate与endDate的间隔天数startDate - 开始日期endDate - 结束日期public static long intervalDays(ZonedDateTime endDate)
endDate - 指定日期public static long intervalDays(ZonedDateTime startDate, ZonedDateTime endDate)
startDate与endDate的间隔天数startDate - 开始日期endDate - 结束日期Copyright © 2019. All rights reserved.