| 程序包 | 说明 |
|---|---|
| com.iofairy.falcon.range | |
| com.iofairy.falcon.time |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static IntervalType |
IntervalType.valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
|
static IntervalType[] |
IntervalType.values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<T> |
DateTime.datesFromRange(DateTime<?> toDateTime,
int amountUnit,
ChronoUnit chronoUnit,
IntervalType intervalType) |
从给定的时间范围(开始时间,结束时间),按指定的时间单位,指定的步长偏移时间,返回每次偏移后的所有时间列表
|
List<T> |
DateTime.datesFromRange(DateTime<?> toDateTime,
ChronoUnit chronoUnit,
IntervalType intervalType) |
从给定的时间范围(开始时间,结束时间),按指定的时间单位,指定的步长偏移时间,返回每次偏移后的所有时间列表
|
static List<Calendar> |
DateTimeShift.datesFromRange(Calendar fromCalendar,
Calendar toCalendar,
int amountUnit,
ChronoUnit chronoUnit,
IntervalType intervalType) |
从给定的时间范围(开始时间,结束时间),按指定的时间单位,指定的步长偏移时间,返回每次偏移后的所有时间列表
|
static List<Date> |
DateTimeShift.datesFromRange(Date fromDate,
Date toDate,
ZonedDateTime fromZdt,
ZonedDateTime toZdt,
int amountUnit,
ChronoUnit chronoUnit,
IntervalType intervalType) |
从给定的时间范围(开始时间,结束时间),按指定的时间单位,指定的步长偏移时间,返回每次偏移后的所有时间列表
|
static <T extends Temporal> |
DateTimeShift.datesFromRange(T fromTemporal,
Temporal toTemporal,
int amountUnit,
ChronoUnit chronoUnit,
IntervalType intervalType) |
从给定的时间范围(开始时间,结束时间),按指定的时间单位,指定的步长偏移时间,返回每次偏移后的所有时间列表
|
boolean |
DateTime.in(DateTime<?> startDT,
DateTime<?> endDT,
IntervalType intervalType) |
判断当前 DateTime 是否在提供的两个 DateTime 之间
|
Copyright © 2023. All rights reserved.