Index

A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

abs() - Method in class cloud.opencode.base.date.extra.Days
 
abs() - Method in class cloud.opencode.base.date.extra.Hours
 
abs() - Method in class cloud.opencode.base.date.extra.Minutes
 
abs() - Method in class cloud.opencode.base.date.extra.Months
 
abs() - Method in class cloud.opencode.base.date.extra.Seconds
 
abs() - Method in class cloud.opencode.base.date.extra.Weeks
 
abs() - Method in class cloud.opencode.base.date.extra.Years
 
absDays() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the absolute number of days between start and end 获取开始和结束之间的天数绝对值
absMonths() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the absolute number of months between start and end 获取开始和结束之间的月数绝对值
absWeeks() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the absolute number of weeks between start and end 获取开始和结束之间的周数绝对值
absYears() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the absolute number of years between start and end 获取开始和结束之间的年数绝对值
abuts(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval abuts (is adjacent to) the specified interval 检查此区间是否与指定区间相邻
abuts(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range abuts (is adjacent to) the specified range 检查此范围是否与指定范围相邻
abuts(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
addBusinessDays(LocalDate, int) - Static method in class cloud.opencode.base.date.between.BusinessDays
Adds the specified number of business days to a date, skipping weekends 向日期添加指定数量的工作日,跳过周末
addBusinessDays(LocalDate, int, Set) - Static method in class cloud.opencode.base.date.between.BusinessDays
Adds business days with custom holidays 使用自定义假期添加工作日
addBusinessDays(LocalDate, int, Set, Set) - Static method in class cloud.opencode.base.date.between.BusinessDays
Adds business days with custom holidays and weekend definitions 使用自定义假期和周末定义添加工作日
addHoliday(Holiday) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Adds a holiday 添加假日
addHolidays(Collection) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Adds multiple holidays 添加多个假日
addSpecialWorkday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Adds a special workday 添加特殊工作日
addSpecialWorkdays(Collection) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Adds multiple special workdays 添加多个特殊工作日
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Days
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Hours
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Minutes
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Months
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Seconds
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Weeks
 
addTo(Temporal) - Method in class cloud.opencode.base.date.extra.Years
 
addWorkdays(LocalDate, int) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Adds workdays to a date 向日期添加工作日
adjustInto(Temporal) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.extra.YearHalf
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
adjustInto(Temporal) - Method in class cloud.opencode.base.date.extra.YearWeek
 
AFTERNOON - Static variable in class cloud.opencode.base.date.extra.LocalTimeRange
Afternoon (12:00 - 18:00)
AgeBetween - Class in cloud.opencode.base.date.between
Calculates age from a birth date to a reference date 从出生日期到参考日期计算年龄
AgeDetail - Class in cloud.opencode.base.date.between
Detailed age information including statistics and milestones 详细年龄信息,包括统计数据和里程碑
ageInYears(LocalDate) - Static method in class cloud.opencode.base.date.between.AgeBetween
Calculates age in years from birth date to today 从出生日期到今天计算年龄(年)
ALL_DAY - Static variable in class cloud.opencode.base.date.extra.LocalTimeRange
A range representing the entire day
AM - Enum constant in enum class cloud.opencode.base.date.extra.AmPm
AM - Ante Meridiem (before noon, 00:00-11:59) 上午(00:00-11:59)
AmPm - Enum Class in cloud.opencode.base.date.extra
AmPm enum representing AM (ante meridiem) and PM (post meridiem) 上午/下午枚举,表示上午(AM)和下午(PM)
andThen(TemporalAdjuster, TemporalAdjuster) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns an adjuster that applies first adjuster then second.
asHolidayPredicate() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Creates a predicate for checking holidays 创建检查假日的谓词
asWorkdayPredicate() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Creates a predicate for checking workdays 创建检查工作日的谓词
at(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.between.AgeBetween
Creates an AgeBetween from birth date to a specific reference date 从出生日期到指定参考日期创建AgeBetween
atDay(int) - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the date at a specific day within this quarter 获取此季度内特定天的日期
atDay(int, int) - Method in class cloud.opencode.base.date.extra.YearHalf
Gets a specific date in this year-half 获取此年-半年中的特定日期
atDay(DayOfWeek) - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the date for a specific day of week within this week 获取此周内特定星期几的日期
atEnd() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the end date of this year-half 获取此年-半年的结束日期
atEndOfQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the end date of this quarter 获取此季度的结束日期
atFriday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Friday of this week 获取此周的周五
atHour(int) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns an adjuster to specific hour.
atMonday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Monday of this week 获取此周的周一
atMonth(int) - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the YearMonth at a specific month within this quarter 获取此季度内特定月份的YearMonth
atSaturday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Saturday of this week 获取此周的周六
atStart() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the start date of this year-half 获取此年-半年的开始日期
atStartOfQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the start date of this quarter 获取此季度的开始日期
atSunday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Sunday of this week 获取此周的周日
atThursday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Thursday of this week 获取此周的周四
atTuesday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Tuesday of this week 获取此周的周二
atWednesday() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the Wednesday of this week 获取此周的周三
atYear(int) - Method in class cloud.opencode.base.date.extra.DayOfYear
Combines this day with a year value to create a LocalDate 将此天与年份值组合创建LocalDate
atYear(Year) - Method in class cloud.opencode.base.date.extra.DayOfYear
Combines this day with a Year to create a LocalDate 将此天与Year组合创建LocalDate
atYearMonth(int, int) - Method in class cloud.opencode.base.date.extra.DayOfMonth
Combines this day with year and month to create a LocalDate 将此天与年和月组合创建LocalDate
atYearMonth(int, Month) - Method in class cloud.opencode.base.date.extra.DayOfMonth
Combines this day with year and Month to create a LocalDate 将此天与年和Month组合创建LocalDate
atYearMonth(YearMonth) - Method in class cloud.opencode.base.date.extra.DayOfMonth
Combines this day with a YearMonth to create a LocalDate 将此天与YearMonth组合创建LocalDate

B

BANK - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Bank/financial holiday 银行/金融假日
BEIJING - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
BERLIN - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
BERLIN - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Central European Time (Berlin) 中欧时间(柏林)
between(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.between.BusinessDays
Counts business days between two dates, excluding weekends (Saturday and Sunday) 计算两个日期之间的工作日数,排除周末(周六和周日)
between(LocalDate, LocalDate, Set) - Static method in class cloud.opencode.base.date.between.BusinessDays
Counts business days between two dates, excluding weekends and specified holidays 计算两个日期之间的工作日数,排除周末和指定假期
between(LocalDate, LocalDate, Set, Set) - Static method in class cloud.opencode.base.date.between.BusinessDays
Counts business days between two dates with custom weekend and holiday definitions 使用自定义周末和假期定义计算两个日期之间的工作日数
between(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.DateTimes
Creates a PeriodDuration between two LocalDateTimes 计算两个LocalDateTime之间的PeriodDuration
between(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.extra.PeriodDuration
Calculates the PeriodDuration between two LocalDateTimes 计算两个LocalDateTime之间的PeriodDuration
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.between.DateBetween
Creates a DateBetween from any two Temporal objects 从任意两个Temporal对象创建DateBetween
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Days
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Hours
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Minutes
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Months
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Seconds
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Weeks
 
between(Temporal, Temporal) - Static method in class cloud.opencode.base.date.extra.Years
 
build() - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Builds the BusinessDayAdjuster 构建BusinessDayAdjuster
build() - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Builds the WorkdayAdjuster 构建WorkdayAdjuster
build() - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Builds the Holiday 构建Holiday
build() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Builds the HolidayCalendar 构建HolidayCalendar
builder() - Static method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Creates a builder for customized business day adjusters 创建自定义工作日调整器的构建器
builder() - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates a builder for customized workday adjusters 创建自定义工作日调整器的构建器
builder() - Static method in class cloud.opencode.base.date.holiday.Holiday
Creates a builder 创建构建器
builder() - Static method in class cloud.opencode.base.date.holiday.HolidayCalendar
Creates a builder 创建构建器
BUSINESS_HOURS - Static variable in class cloud.opencode.base.date.extra.LocalTimeRange
Common business hours (9:00 - 17:00)
BusinessDayAdjuster - Class in cloud.opencode.base.date.adjuster
Advanced business day adjuster with holiday and special workday support 高级工作日调整器,支持假日和特殊工作日
BusinessDayAdjuster.Builder - Class in cloud.opencode.base.date.adjuster
Builder for BusinessDayAdjuster BusinessDayAdjuster构建器
BusinessDays - Class in cloud.opencode.base.date.between
Utility for calculating business day differences and offsets 工作日差异和偏移量计算工具类
businessHours() - Static method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
Creates a TimeRange for business hours (9:00 - 17:00) 创建工作时间范围(9:00 - 17:00)

C

cacheSize() - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Gets the current cache size 获取当前缓存大小
ceilTo(LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.DateRounding
Ceils to the next multiple of the given duration.
ceilToHour(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Ceils to the next hour boundary.
ceilToMinute(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Ceils to the next minute boundary.
CHICAGO - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
CHINA - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
CHINA - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
China Standard Time (Beijing) 中国标准时间(北京)
CHINESE_DATE - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Chinese date format: yyyy年MM月dd日 (e.g., 2024年01月15日) 中文日期格式:yyyy年MM月dd日(例如:2024年01月15日)
CHINESE_DATE_SHORT - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Chinese date format (short): yyyy年M月d日 (e.g., 2024年1月5日) 中文日期格式(短):yyyy年M月d日(例如:2024年1月5日)
CHINESE_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Chinese datetime format: yyyy年MM月dd日 HH时mm分ss秒 中文日期时间格式:yyyy年MM月dd日 HH时mm分ss秒
CHINESE_MONTH - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Chinese month format: yyyy年MM月 (e.g., 2024年01月) 中文月份格式:yyyy年MM月(例如:2024年01月)
CHINESE_TIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Chinese time format: HH时mm分ss秒 (e.g., 14时30分45秒) 中文时间格式:HH时mm分ss秒(例如:14时30分45秒)
chineseName(String) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the Chinese name 设置中文名称
clearCache() - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Clears the formatter cache 清除格式化器缓存
closestAfter(LocalDate, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date strictly after the target.
closestAfter(LocalDateTime, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date-time strictly after the target.
closestBefore(LocalDate, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date strictly before the target.
closestBefore(LocalDateTime, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date-time strictly before the target.
ClosestDate - Class in cloud.opencode.base.date
Utility for finding the closest date in a collection 在集合中查找最接近日期的工具类
closestTo(LocalDate, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date to the target from the given collection.
closestTo(LocalDateTime, Collection) - Static method in class cloud.opencode.base.date.ClosestDate
Finds the closest date-time to the target from the given collection.
cloud.opencode.base.date - module cloud.opencode.base.date
OpenCode Base Date Module OpenCode 基础日期模块
cloud.opencode.base.date - package cloud.opencode.base.date
 
cloud.opencode.base.date.adjuster - package cloud.opencode.base.date.adjuster
 
cloud.opencode.base.date.between - package cloud.opencode.base.date.between
 
cloud.opencode.base.date.cron - package cloud.opencode.base.date.cron
 
cloud.opencode.base.date.exception - package cloud.opencode.base.date.exception
 
cloud.opencode.base.date.extra - package cloud.opencode.base.date.extra
 
cloud.opencode.base.date.formatter - package cloud.opencode.base.date.formatter
 
cloud.opencode.base.date.holiday - package cloud.opencode.base.date.holiday
 
cloud.opencode.base.date.range - package cloud.opencode.base.date.range
 
cloud.opencode.base.date.timezone - package cloud.opencode.base.date.timezone
 
COMPANY - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Company-specific holiday 公司特定假日
compareTemporal(Object, Object) - Static method in class cloud.opencode.base.date.TemporalUtil
Compares two temporal/date objects generically.
compareTo(DayOfMonth) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
compareTo(DayOfYear) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
compareTo(Days) - Method in class cloud.opencode.base.date.extra.Days
 
compareTo(Hours) - Method in class cloud.opencode.base.date.extra.Hours
 
compareTo(Minutes) - Method in class cloud.opencode.base.date.extra.Minutes
 
compareTo(Months) - Method in class cloud.opencode.base.date.extra.Months
 
compareTo(Seconds) - Method in class cloud.opencode.base.date.extra.Seconds
 
compareTo(Weeks) - Method in class cloud.opencode.base.date.extra.Weeks
 
compareTo(YearHalf) - Method in class cloud.opencode.base.date.extra.YearHalf
 
compareTo(YearQuarter) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
compareTo(Years) - Method in class cloud.opencode.base.date.extra.Years
 
compareTo(YearWeek) - Method in class cloud.opencode.base.date.extra.YearWeek
 
compareTo(Holiday) - Method in class cloud.opencode.base.date.holiday.Holiday
 
compose(TemporalAdjuster...) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Composes multiple adjusters into one.
contains(int) - Method in enum class cloud.opencode.base.date.extra.Quarter
Checks if the given month is in this quarter 检查给定月份是否在此季度内
contains(LocalTimeRange) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Checks if this range fully contains another range 检查此范围是否完全包含另一个范围
contains(Instant) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval contains the specified instant 检查此区间是否包含指定时刻
contains(LocalDate) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Checks if this range contains the specified date 检查此范围是否包含指定日期
contains(LocalDate) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
contains(LocalDateTime) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range contains the specified datetime 检查此范围是否包含指定日期时间
contains(LocalDateTime) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
contains(LocalTime) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Checks if this range contains the specified time 检查此范围是否包含指定时间
contains(LocalTime) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
contains(Month) - Method in enum class cloud.opencode.base.date.extra.Quarter
Checks if the given Month is in this quarter 检查给定Month是否在此季度内
convert(long) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts epoch milliseconds to the target timezone 将毫秒时间戳转换到目标时区
convert(Instant) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts an Instant to the target timezone 将Instant转换到目标时区
convert(LocalDateTime) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts a LocalDateTime to the target timezone 将LocalDateTime转换到目标时区
convert(LocalDateTime, ZoneId, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts a datetime between two timezones 在两个时区之间转换日期时间
convert(LocalDateTime, ZoneId, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts a LocalDateTime from one timezone to another 将LocalDateTime从一个时区转换为另一个时区
convert(ZonedDateTime) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts a ZonedDateTime to the target timezone 将ZonedDateTime转换到目标时区
convert(ZonedDateTime, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts a ZonedDateTime to another timezone 将ZonedDateTime转换为另一个时区
convertToLocal(LocalDateTime) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts to LocalDateTime in the target timezone 转换为目标时区中的LocalDateTime
convertToOffset(LocalDateTime) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts to OffsetDateTime in the target timezone 转换为目标时区中的OffsetDateTime
countBusinessDays(LocalDate, LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Counts business days between two dates (exclusive of end date) 计算两个日期之间的工作日(不包括结束日期)
countWorkdays(LocalDate, LocalDate) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Counts workdays between two dates (exclusive of end date) 计算两个日期之间的工作日(不包括结束日期)
countWorkdays(LocalDate, LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Counts workdays between two dates 计算两个日期之间的工作日数
createStarted() - Static method in class cloud.opencode.base.date.StopWatch
Creates and starts a StopWatch 创建并启动StopWatch
createStarted(String) - Static method in class cloud.opencode.base.date.StopWatch
Creates and starts a named StopWatch 创建并启动命名的StopWatch
cronError(String, String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a cron expression error 创建Cron表达式错误异常
cronError(String, String, Throwable) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a cron expression error with cause 创建带原因的Cron表达式错误异常
CronExpression - Class in cloud.opencode.base.date.cron
A cron expression parser and scheduler Cron表达式解析器和调度器
CronUtil - Class in cloud.opencode.base.date.cron
Utility class for Cron expression operations Cron表达式工具类
crossesMidnight() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Checks if the range crosses midnight 检查范围是否跨越午夜
CULTURAL - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Cultural/traditional holiday 文化/传统假日
currentQuarter() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current YearQuarter 获取当前YearQuarter
currentQuarter() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current YearQuarter 获取当前YearQuarter
currentTimeMillis() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current time in milliseconds 获取当前时间戳(毫秒)
currentTimeSeconds() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current time in seconds 获取当前时间戳(秒)
currentWeek() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current YearWeek 获取当前YearWeek
currentWeek() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current YearWeek 获取当前YearWeek
currentYear() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current Year 获取当前Year
currentYearMonth() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current YearMonth 获取当前YearMonth

D

daily(int, int) - Static method in class cloud.opencode.base.date.cron.CronExpression
Creates a cron expression for a specific time 为特定时间创建cron表达式
DAILY - Static variable in class cloud.opencode.base.date.cron.CronExpression
Every day at midnight 每天午夜
DAILY_MIDNIGHT - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every day at midnight
DAILY_NOON - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every day at noon
dailyAt(int, int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Creates a Cron expression for running at a specific time every day 创建每天在特定时间运行的Cron表达式
date(int, int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDate 创建LocalDate
date(int, Month, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDate using Month enum 使用Month枚举创建LocalDate
date(LocalDate) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the date 设置日期
DateAdjusters - Class in cloud.opencode.base.date.adjuster
Extended temporal adjusters for common date operations 扩展的时间调整器,用于常见日期操作
DateBetween - Class in cloud.opencode.base.date.between
Calculates the difference between two dates or date-times 计算两个日期或日期时间之间的差异
DateDiff - Class in cloud.opencode.base.date.between
Detailed date difference breakdown with years, months, and days 详细的日期差异分解,包含年、月、日
DateFormatter - Class in cloud.opencode.base.date.formatter
Predefined Date Formatters with caching support 预定义的日期格式化器,支持缓存
DateParser - Class in cloud.opencode.base.date.formatter
Smart Date Parser that can automatically detect and parse various date formats 智能日期解析器,可自动检测和解析各种日期格式
DatePredicates - Class in cloud.opencode.base.date
Static Predicate Methods for Date/Time Objects 日期时间对象的静态谓词方法
dateRange(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDateRange 创建LocalDateRange
DateRange - Class in cloud.opencode.base.date.range
Deprecated.
Use LocalDateRange instead
DateRounding - Class in cloud.opencode.base.date
Utility for rounding date/time values to various intervals 将日期时间值舍入到各种间隔的工具类
DateStreams - Class in cloud.opencode.base.date
Utility for Creating Streams of Date/Time Objects 日期时间对象流创建工具
dateTime(int, int, int, int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDateTime 创建LocalDateTime
dateTime(int, int, int, int, int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDateTime with seconds 创建带秒的LocalDateTime
dateTime(LocalDate, LocalTime) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDateTime from date and time 从日期和时间创建LocalDateTime
dateTimeRange(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalDateTimeRange 创建LocalDateTimeRange
DateTimeRange - Class in cloud.opencode.base.date.range
Deprecated.
Use LocalDateTimeRange instead
DateTimes - Class in cloud.opencode.base.date
Static Factory for Date and Time Types 日期时间类型的静态工厂
dayOff(boolean) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets whether this is a day off 设置是否放假
dayOfMonth(int) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the nth day of the month adjuster 返回月份第N天调整器
DayOfMonth - Class in cloud.opencode.base.date.extra
DayOfMonth class representing a day within a month (1-31) 月份中的天,表示月份中的一天(1-31)
dayOfWeekInMonth(int, DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the nth day of week in month adjuster.
DayOfYear - Class in cloud.opencode.base.date.extra
DayOfYear class representing a day within a year (1-366) 年份中的天,表示年份中的一天(1-366)
days() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of days between start and end (signed) 获取开始和结束之间的天数(带符号)
days(int) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the number of days to adjust 设置要调整的天数
days(int) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Sets the number of days to adjust 设置要调整的天数
days(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified days 创建指定天数的Duration
days(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of consecutive days from start (inclusive) to end (exclusive).
days(LocalDate, LocalDate, Period) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of dates from start (inclusive) to end (exclusive) with a custom period step.
Days - Class in cloud.opencode.base.date.extra
Days unit class representing a number of days 天数单位类,表示天数
daysBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the number of days between two dates 获取两个日期之间的天数
daysBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Calculates days between two dates 计算两个日期之间的天数
daysInMonth(int, int) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the number of days in a month 获取月份的天数
daysInMonth(YearMonth) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the number of days in a month 获取月份的天数
describe() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets a human-readable description of the cron expression 获取cron表达式的人类可读描述
describe(String) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets a human-readable description of a Cron expression 获取Cron表达式的可读描述
describeInChinese(String) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets a Chinese description of a Cron expression 获取Cron表达式的中文描述
description(String) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the description 设置描述
dividedBy(int) - Method in class cloud.opencode.base.date.extra.Days
 
dividedBy(int) - Method in class cloud.opencode.base.date.extra.Months
 
dividedBy(int) - Method in class cloud.opencode.base.date.extra.Weeks
 
dividedBy(int) - Method in class cloud.opencode.base.date.extra.Years
 
dividedBy(long) - Method in class cloud.opencode.base.date.extra.Hours
 
dividedBy(long) - Method in class cloud.opencode.base.date.extra.Minutes
 
dividedBy(long) - Method in class cloud.opencode.base.date.extra.Seconds
 
duration() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Gets the elapsed time as Duration 获取经过时间作为Duration
durationBetween(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Gets the Duration between two datetimes 获取两个日期时间之间的Duration

E

empty() - Static method in class cloud.opencode.base.date.extra.LocalDateRange
Creates an empty LocalDateRange 创建空的LocalDateRange
empty() - Static method in class cloud.opencode.base.date.holiday.HolidayCalendar
Creates an empty calendar 创建空日历
empty() - Static method in class cloud.opencode.base.date.range.DateRange
Deprecated.
Creates an empty DateRange 创建空日期范围
empty() - Static method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Creates an empty DateTimeRange at the current time 在当前时间创建空日期时间范围
empty(Instant) - Static method in class cloud.opencode.base.date.extra.Interval
Creates an empty Interval at the specified instant 在指定时刻创建空Interval
empty(LocalDateTime) - Static method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates an empty LocalDateTimeRange at the specified datetime 在指定日期时间创建空的LocalDateTimeRange
empty(LocalDateTime) - Static method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Creates an empty DateTimeRange at the specified time 在指定时间创建空日期时间范围
encloses(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval encloses (fully contains) the specified interval 检查此区间是否包围(完全包含)指定区间
encloses(LocalDateRange) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Checks if this range encloses (fully contains) the specified range 检查此范围是否包围(完全包含)指定范围
encloses(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range encloses (fully contains) the specified range 检查此范围是否包围(完全包含)指定范围
encloses(DateRange) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
encloses(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
encloses(TimeRange) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
endOfDay() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the end of day adjuster (23:59:59.999999999).
endOfDay(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the end of day for a date-time 获取日期时间的当天结束
endOfFirstHalf() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the first half of the year 返回上半年结束
endOfMonth() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the month adjuster (alias for lastDayOfMonth) 返回月末调整器(lastDayOfMonth的别名)
endOfMonth(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the last day of the month 获取月份的最后一天
endOfMonth(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the end of month for a date-time 获取日期时间的当月结束
endOfQuarter() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the current quarter adjuster 返回当前季度结束调整器
endOfQuarter(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the last day of the quarter 获取季度的最后一天
endOfSecondHalf() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the second half of the year 返回下半年结束
endOfWeek() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the week adjuster (Sunday) 返回周末调整器(周日)
endOfWeek(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the week adjuster for a specific last day 返回特定末日的周末调整器
endOfWeek(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the last day of the week (Sunday) 获取周的最后一天(周日)
endOfWeek(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the end of week for a date-time (Sunday) 获取日期时间的当周结束(周日)
endOfYear() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the end of the year adjuster 返回年末调整器
endOfYear(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the last day of the year 获取年份的最后一天
endOfYear(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the end of year for a date-time 获取日期时间的当年结束
equals(Object) - Method in class cloud.opencode.base.date.between.AgeBetween
 
equals(Object) - Method in class cloud.opencode.base.date.between.AgeDetail
 
equals(Object) - Method in class cloud.opencode.base.date.between.DateBetween
 
equals(Object) - Method in class cloud.opencode.base.date.between.DateDiff
 
equals(Object) - Method in class cloud.opencode.base.date.cron.CronExpression
 
equals(Object) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
equals(Object) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Days
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Hours
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Interval
 
equals(Object) - Method in class cloud.opencode.base.date.extra.LocalDateRange
 
equals(Object) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
 
equals(Object) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Minutes
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Months
 
equals(Object) - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Seconds
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Weeks
 
equals(Object) - Method in class cloud.opencode.base.date.extra.YearHalf
 
equals(Object) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
equals(Object) - Method in class cloud.opencode.base.date.extra.Years
 
equals(Object) - Method in class cloud.opencode.base.date.extra.YearWeek
 
equals(Object) - Method in class cloud.opencode.base.date.holiday.Holiday
 
equals(Object) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
equals(Object) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
equals(Object) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
equals(Object) - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Indicates whether some other object is "equal to" this one.
EVENING - Static variable in class cloud.opencode.base.date.extra.LocalTimeRange
Evening (18:00 - 22:00)
EVERY_15_MINUTES - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every 15 minutes
EVERY_30_MINUTES - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every 30 minutes
EVERY_5_MINUTES - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every 5 minutes
EVERY_HOUR - Static variable in class cloud.opencode.base.date.cron.CronExpression
Every hour 每小时
EVERY_HOUR - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every hour
EVERY_MINUTE - Static variable in class cloud.opencode.base.date.cron.CronExpression
Every minute 每分钟
EVERY_MINUTE - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every minute
EVERY_SECOND - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every second
everyHours(int) - Static method in class cloud.opencode.base.date.cron.CronExpression
Creates a cron expression for every N hours 为每N小时创建cron表达式
everyHours(int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Creates a Cron expression for running every N hours 创建每N小时运行的Cron表达式
everyMinutes(int) - Static method in class cloud.opencode.base.date.cron.CronExpression
Creates a cron expression for every N minutes 为每N分钟创建cron表达式
everyMinutes(int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Creates a Cron expression for running every N minutes 创建每N分钟运行的Cron表达式
expand(Duration) - Method in class cloud.opencode.base.date.extra.Interval
Expands this interval by the specified duration on both ends 在两端扩展此区间指定的时长
expand(Duration) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Expands the range by the specified duration on both ends 在两端按指定持续时间扩展范围

F

findHoliday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the holiday for a date as Optional 获取日期的假日(Optional形式)
findTimezones(String) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets timezones matching a pattern 获取匹配模式的时区
first() - Static method in class cloud.opencode.base.date.extra.DayOfMonth
Gets the first day of month (1) 获取月份的第一天(1)
first() - Static method in class cloud.opencode.base.date.extra.DayOfYear
Gets the first day of year (1) 获取年份的第一天(1)
firstDayOfHalf() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of half-year adjuster.
firstDayOfMonth() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of month adjuster.
firstDayOfNextMonth() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of next month adjuster.
firstDayOfNextQuarter() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of next quarter adjuster.
firstDayOfNextYear() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of next year adjuster.
firstDayOfQuarter() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of quarter adjuster.
firstDayOfWeek() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of week adjuster (Monday).
firstDayOfWeek(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of week adjuster for specific first day.
firstDayOfYear() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the first day of year adjuster.
firstHour() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the first hour of this period (0 for AM, 12 for PM) 获取此时段的第一个小时(AM为0,PM为12)
firstMonth() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the first month of this quarter (1, 4, 7, or 10) 获取季度的第一个月(1, 4, 7, 或 10)
firstMonth() - Method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets the first month of this half 获取此半年的第一个月
firstMonthOfQuarter() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the first Month enum of this quarter 获取季度的第一个Month枚举
FLEXIBLE_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Flexible datetime format that tolerates various separators 弹性日期时间格式,容忍各种分隔符
floorTo(LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.DateRounding
Floors to the current multiple of the given duration.
floorToHour(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Floors to the current hour boundary.
floorToMinute(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Floors to the current minute boundary.
format() - Method in class cloud.opencode.base.date.between.AgeBetween
Formats the age as a string 将年龄格式化为字符串
format() - Method in class cloud.opencode.base.date.between.DateDiff
Formats as a human-readable string 格式化为人类可读的字符串
format() - Method in class cloud.opencode.base.date.extra.YearQuarter
Formats this YearQuarter using the default format (2024-Q1) 使用默认格式(2024-Q1)格式化此YearQuarter
format() - Method in class cloud.opencode.base.date.extra.YearWeek
Formats this YearWeek using the default format (2024-W01) 使用默认格式(2024-W01)格式化此YearWeek
format(Duration) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Duration as a human-readable string 将Duration格式化为人类可读的字符串
format(DateTimeFormatter) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Formats the range using the specified formatter 使用指定的格式化器格式化范围
format(DateTimeFormatter) - Method in class cloud.opencode.base.date.extra.YearQuarter
Formats this YearQuarter using the specified formatter 使用指定格式化器格式化此YearQuarter
format(DateTimeFormatter) - Method in class cloud.opencode.base.date.extra.YearWeek
Formats this YearWeek using the specified formatter 使用指定格式化器格式化此YearWeek
format(Instant) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats an Instant as a relative time string 将Instant格式化为相对时间字符串
format(Instant, ZoneId, DateTimeFormatter) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Formats a datetime in the specified timezone 以指定时区格式化日期时间
format(Period) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Period as a human-readable string 将Period格式化为人类可读的字符串
format(Temporal) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a temporal as a relative time string in English 将时间格式化为英文相对时间字符串
format(Temporal) - Static method in class cloud.opencode.base.date.OpenDate
Formats a temporal to the default format (yyyy-MM-dd HH:mm:ss) 将时间对象格式化为默认格式(yyyy-MM-dd HH:mm:ss)
format(TemporalAccessor, String) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a temporal using the given pattern 使用给定模式格式化时间对象
format(TemporalAmount) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats any TemporalAmount as a human-readable string 将任意TemporalAmount格式化为人类可读的字符串
format(Temporal, String) - Static method in class cloud.opencode.base.date.OpenDate
Formats a temporal to the specified pattern 将时间对象格式化为指定模式
format(Temporal, Temporal) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a temporal as a relative time string relative to a reference time 相对于参考时间将时间格式化为相对时间字符串
formatChinese() - Method in class cloud.opencode.base.date.between.AgeBetween
Formats the age as a Chinese string 将年龄格式化为中文字符串
formatChinese() - Method in class cloud.opencode.base.date.between.DateDiff
Formats as a Chinese human-readable string 格式化为中文人类可读的字符串
formatChinese(Duration) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Duration as a Chinese string 将Duration格式化为中文字符串
formatChinese(Instant) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats an Instant as a relative time string in Chinese 将Instant格式化为中文相对时间字符串
formatChinese(LocalDate) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a temporal to Chinese date format (yyyy年MM月dd日) 将时间对象格式化为中文日期格式(yyyy年MM月dd日)
formatChinese(LocalDateTime) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a temporal to Chinese datetime format 将时间对象格式化为中文日期时间格式
formatChinese(Period) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Period as a Chinese string 将Period格式化为中文字符串
formatChinese(Temporal) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a temporal as a relative time string in Chinese 将时间格式化为中文相对时间字符串
formatChinese(Temporal) - Static method in class cloud.opencode.base.date.OpenDate
Formats a temporal to Chinese format 将时间对象格式化为中文格式
formatChinese(Temporal, Temporal) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a temporal as a relative time string in Chinese relative to reference 相对于参考时间将时间格式化为中文相对时间字符串
formatCompact() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Formats as a compact string (HH:mm-HH:mm) 格式化为紧凑字符串
formatCompact(Duration) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Duration in compact form (e.g., "PT1H30M") 将Duration格式化为紧凑格式(如"PT1H30M")
formatCompact(Period) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Period in compact form (e.g., "P1Y2M15D") 将Period格式化为紧凑格式(如"P1Y2M15D")
formatCompact(Temporal) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats as a compact relative time string (e.g., "5m", "3h", "2d") 格式化为紧凑的相对时间字符串(如"5m"、"3h"、"2d")
formatDate(LocalDate) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a LocalDate to standard date format (yyyy-MM-dd) 将LocalDate格式化为标准日期格式(yyyy-MM-dd)
formatDateTime(LocalDateTime) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a LocalDateTime to standard datetime format (yyyy-MM-dd HH:mm:ss) 将LocalDateTime格式化为标准日期时间格式(yyyy-MM-dd HH:mm:ss)
formatDuration(Duration) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a Duration as a relative time string 将Duration格式化为相对时间字符串
formatDurationChinese(Duration) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats a Duration as a relative time string in Chinese 将Duration格式化为中文相对时间字符串
formatError(String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a format error exception 创建格式化错误异常
formatError(String, Throwable) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a format error exception with cause 创建带原因的格式化错误异常
formatIso(LocalDateTime) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a LocalDateTime to ISO format (yyyy-MM-dd'T'HH:mm:ss) 将LocalDateTime格式化为ISO格式(yyyy-MM-dd'T'HH:mm:ss)
formatIso(Temporal) - Static method in class cloud.opencode.base.date.OpenDate
Formats a temporal to ISO format 将时间对象格式化为ISO格式
formatOffset(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Formats the offset as a string (e.g., "+08:00") 将偏移格式化为字符串(如"+08:00")
formatShort(Duration) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Duration in short form (e.g., "1d 2h 30m 15s") 将Duration格式化为短格式(如"1d 2h 30m 15s")
formatShort(Period) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Period in short form (e.g., "1y 2m 15d") 将Period格式化为短格式(如"1y 2m 15d")
formatSmart(LocalDateTime) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats using smart relative time with day-specific terms 使用智能相对时间格式化,包含日期特定术语
formatSmartChinese(LocalDateTime) - Static method in class cloud.opencode.base.date.formatter.RelativeTimeFormatter
Formats using smart relative time with day-specific terms in Chinese 使用智能相对时间格式化,包含中文日期特定术语
formatTime() - Method in class cloud.opencode.base.date.StopWatch
Formats the total time as a human-readable string 将总时间格式化为人类可读的字符串
formatTime(Duration) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Formats a Duration as time format (HH:MM:SS) 将Duration格式化为时间格式(HH:MM:SS)
formatTime(LocalTime) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Formats a LocalTime to standard time format (HH:mm:ss) 将LocalTime格式化为标准时间格式(HH:mm:ss)
from(LocalDateRange) - Static method in class cloud.opencode.base.date.range.DateRange
Deprecated.
Creates a DateRange from a LocalDateRange 从LocalDateRange创建DateRange
from(LocalDateTimeRange) - Static method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Creates a DateTimeRange from a LocalDateTimeRange 从LocalDateTimeRange创建DateTimeRange
from(LocalTimeRange) - Static method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
Creates a TimeRange from a LocalTimeRange 从LocalTimeRange创建TimeRange
from(Duration) - Static method in class cloud.opencode.base.date.extra.Hours
 
from(Duration) - Static method in class cloud.opencode.base.date.extra.Minutes
 
from(Duration) - Static method in class cloud.opencode.base.date.extra.Seconds
 
from(Month) - Static method in enum class cloud.opencode.base.date.extra.Quarter
Gets the Quarter from a Month enum 从Month枚举获取季度
from(Period) - Static method in class cloud.opencode.base.date.extra.Days
 
from(Period) - Static method in class cloud.opencode.base.date.extra.Months
 
from(Period) - Static method in class cloud.opencode.base.date.extra.Years
 
from(TemporalAccessor) - Static method in enum class cloud.opencode.base.date.extra.AmPm
Gets the AmPm from a TemporalAccessor 从TemporalAccessor获取AmPm
from(TemporalAccessor) - Static method in class cloud.opencode.base.date.extra.DayOfMonth
Gets a DayOfMonth from a TemporalAccessor 从TemporalAccessor获取DayOfMonth
from(TemporalAccessor) - Static method in class cloud.opencode.base.date.extra.DayOfYear
Gets a DayOfYear from a TemporalAccessor 从TemporalAccessor获取DayOfYear
from(TemporalAccessor) - Static method in enum class cloud.opencode.base.date.extra.Quarter
Gets the Quarter from a TemporalAccessor 从TemporalAccessor获取季度
from(TemporalAccessor) - Static method in class cloud.opencode.base.date.extra.YearHalf
Creates a YearHalf from a TemporalAccessor 从TemporalAccessor创建YearHalf
from(TemporalAccessor) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Creates a YearQuarter from a TemporalAccessor 从TemporalAccessor创建YearQuarter
from(TemporalAccessor) - Static method in class cloud.opencode.base.date.extra.YearWeek
Creates a YearWeek from a TemporalAccessor 从TemporalAccessor创建YearWeek
from(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Creates a converter from the specified source timezone 从指定的源时区创建转换器
from(Calendar) - Static method in class cloud.opencode.base.date.OpenDate
Converts a Calendar to LocalDateTime 将Calendar转换为LocalDateTime
from(Date) - Static method in class cloud.opencode.base.date.OpenDate
Converts a Date to LocalDateTime 将Date转换为LocalDateTime
fromBirth(LocalDate) - Static method in class cloud.opencode.base.date.between.AgeBetween
Creates an AgeBetween from birth date to today 从出生日期到今天创建AgeBetween
fromBirth(LocalDateTime) - Static method in class cloud.opencode.base.date.between.AgeBetween
Creates an AgeBetween from birth date to today (from LocalDateTime) 从出生日期时间到今天创建AgeBetween
fromChina() - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Creates a converter from China timezone 从中国时区创建转换器
fromEpochMilli(long) - Static method in class cloud.opencode.base.date.formatter.DateParser
Creates a LocalDateTime from epoch milliseconds 从毫秒时间戳创建LocalDateTime
fromEpochMilli(long) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts epoch milliseconds to LocalDateTime 将纪元毫秒转换为LocalDateTime
fromEpochMilli(long, ZoneId) - Static method in class cloud.opencode.base.date.formatter.DateParser
Creates a LocalDateTime from epoch milliseconds with specified zone 从毫秒时间戳创建LocalDateTime(指定时区)
fromEpochSecond(long) - Static method in class cloud.opencode.base.date.formatter.DateParser
Creates a LocalDateTime from epoch seconds 从秒时间戳创建LocalDateTime
fromEpochSecond(long) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts epoch seconds to LocalDateTime 将纪元秒转换为LocalDateTime
fromEpochSecond(long, ZoneId) - Static method in class cloud.opencode.base.date.formatter.DateParser
Creates a LocalDateTime from epoch seconds with specified zone 从秒时间戳创建LocalDateTime(指定时区)
fromSystem() - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Creates a converter from system default timezone 从系统默认时区创建转换器
fromUTC() - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Creates a converter from UTC 从UTC创建转换器
fromUTC(LocalDateTime, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts UTC to the specified timezone 将UTC转换为指定时区

G

gap(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Gets the gap between this interval and the specified interval 获取此区间与指定区间之间的间隙
gap(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the gap between this range and the specified range 获取此范围与指定范围之间的间隙
gap(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
get(TemporalField) - Method in class cloud.opencode.base.date.extra.YearHalf
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Days
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Hours
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Minutes
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Months
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Seconds
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Weeks
 
get(TemporalUnit) - Method in class cloud.opencode.base.date.extra.Years
 
getAdjustedWorkdays(int) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets the set of dates that are adjusted workdays (补班日) 获取调休工作日的日期集合(补班日)
getAgeBetween() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the underlying AgeBetween 获取底层的AgeBetween
getAllHolidays() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets all holidays 获取所有假日
getAllTimezoneIds() - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets all available timezone IDs 获取所有可用的时区ID
getAllTimezones() - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets all available timezones as ZoneId 获取所有可用的时区(ZoneId形式)
getAmount() - Method in class cloud.opencode.base.date.extra.Days
 
getAmount() - Method in class cloud.opencode.base.date.extra.Hours
 
getAmount() - Method in class cloud.opencode.base.date.extra.Minutes
 
getAmount() - Method in class cloud.opencode.base.date.extra.Months
 
getAmount() - Method in class cloud.opencode.base.date.extra.Seconds
 
getAmount() - Method in class cloud.opencode.base.date.extra.Weeks
 
getAmount() - Method in class cloud.opencode.base.date.extra.Years
 
getBirthDate() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the birth date 获取出生日期
getBirthdaysCelebrated() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the number of birthdays celebrated 获取庆祝的生日数
getBirthSeason() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the season the person was born in 获取出生的季节
getBirthSeasonChinese() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the season the person was born in (Chinese) 获取出生的季节(中文)
getChineseName() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the Chinese name (上午/下午) 获取中文名称(上午/下午)
getChineseName() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the Chinese name 获取中文名称
getChineseZodiac() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the Chinese zodiac animal 获取中国生肖
getChineseZodiacChinese() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the Chinese zodiac animal in Chinese 获取中国生肖(中文)
getCountryCode() - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets the country/region code 获取国家/地区代码
getCurrentTimeNanos() - Method in class cloud.opencode.base.date.StopWatch
Gets the current elapsed time in nanoseconds (if running) 获取当前经过时间(纳秒,如果正在运行)
getDate() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the date 获取日期
getDays() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the days component (0-30) 获取天数组件(0-30)
getDays() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of days (0-30) 获取天数(0-30)
getDaysOfMonth() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the allowed days of month 获取允许的日期
getDaysOfWeek() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the allowed days of week 获取允许的星期几
getDaysUntilNextBirthday() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the number of days until the next birthday 获取距离下一个生日的天数
getDaysUntilNextMilestone() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the days until the next milestone birthday 获取距离下一个里程碑生日的天数
getDefault() - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the system default timezone 获取系统默认时区
getDefaultProvider() - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets the default holiday provider 获取默认节假日提供者
getDescription() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the description 获取描述
getDisplayName() - Method in enum class cloud.opencode.base.date.extra.AmPm
Returns the display name 返回显示名称
getDisplayName(ZoneId, Locale) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the display name of a timezone 获取时区的显示名称
getDuration() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the duration of this range 获取此范围的持续时间
getDuration() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Gets the duration part 获取时长部分
getEnd() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the end temporal 获取结束时间
getEnd() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the end temporal 获取结束时间
getEnd() - Method in class cloud.opencode.base.date.extra.Interval
Gets the end instant (exclusive) 获取结束时刻(不包含)
getEnd() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Gets the end date (inclusive) 获取结束日期(包含)
getEnd() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the end datetime (exclusive) 获取结束日期时间(不包含)
getEnd() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the end time 获取结束时间
getEnd() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
getEnd() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
getEnd() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
getEstimatedRemainingYears(int) - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the estimated remaining years based on life expectancy 基于预期寿命获取估计的剩余年数
getEstimatedWeekends() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the estimated total weekend days lived (faster calculation) 获取估计的周末天数(更快的计算)
getExpectedFormat() - Method in exception class cloud.opencode.base.date.exception.OpenDateException
Gets the expected format 获取期望的格式
getExpression() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the original expression string 获取原始表达式字符串
getHalf() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the half 获取半年
getHalfValue() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the half value (1 or 2) 获取半年值(1或2)
getHoliday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the holiday for a date 获取日期的假日
getHoliday(LocalDate) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets the holiday for a specific date 获取指定日期的节假日
getHoliday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets the holiday for a specific date 获取指定日期的节假日
getHolidays(int) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets holidays for a specific year 获取特定年份的假日
getHolidays(int) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets all holidays for a specific year 获取指定年份的所有节假日
getHolidays(int) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets all holidays for a specific year 获取指定年份的所有节假日
getHolidays(int, Month) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets holidays for a specific year and month 获取特定年份和月份的假日
getHolidays(LocalDate, LocalDate) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets holidays in a date range 获取日期范围内的节假日
getHolidays(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets holidays in a date range 获取日期范围内的节假日
getHolidaysByType(Holiday.HolidayType) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets holidays of a specific type 获取特定类型的假日
getHolidaysInRange(LocalDate, LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets holidays in a date range 获取日期范围内的假日
getHours() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of hours (0-23) 获取小时数(0-23)
getHours() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the allowed hours 获取允许的小时
getHours() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the duration in hours 获取小时数
getInputValue() - Method in exception class cloud.opencode.base.date.exception.OpenDateException
Gets the input value that caused the exception 获取导致异常的输入值
getLastBirthday() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the last birthday date 获取上一个生日日期
getLastMilestone() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the last passed milestone age 获取上一个通过的里程碑年龄
getLeapYearsLived() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the number of leap years lived through 获取经历的闰年数
getLifePercentage(int) - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the percentage of life lived based on average life expectancy 基于平均预期寿命获取已生存的百分比
getLocalizedName(boolean) - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the localized name 获取本地化名称
getLong(TemporalField) - Method in enum class cloud.opencode.base.date.extra.AmPm
 
getLong(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
getLong(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
getLong(TemporalField) - Method in enum class cloud.opencode.base.date.extra.Quarter
 
getLong(TemporalField) - Method in class cloud.opencode.base.date.extra.YearHalf
 
getLong(TemporalField) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
getLong(TemporalField) - Method in class cloud.opencode.base.date.extra.YearWeek
 
getMinutes() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of minutes (0-59) 获取分钟数(0-59)
getMinutes() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the allowed minutes 获取允许的分钟
getMinutes() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the duration in minutes 获取分钟数
getMonths() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the months component (0-11) 获取月份组件(0-11)
getMonths() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of complete months (0-11) 获取完整月数(0-11)
getMonths() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the allowed months 获取允许的月份
getName() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the name 获取名称
getName() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the calendar name 获取日历名称
getName() - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets the provider name 获取提供者名称
getName() - Method in class cloud.opencode.base.date.StopWatch
Gets the name of this stopwatch 获取计时器的名称
getNextBirthday() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the next birthday date 获取下一个生日日期
getNextDstTransition(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the next DST transition for a timezone 获取时区的下一个夏令时转换
getNextExecutionTime(String) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets the next execution time for a Cron expression 获取Cron表达式的下次执行时间
getNextExecutionTime(String, LocalDateTime) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets the next execution time after a specific time 获取指定时间之后的下次执行时间
getNextExecutionTime(String, ZonedDateTime) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets the next execution time after a specific zoned time 获取指定时区时间之后的下次执行时间
getNextExecutionTime(String, ZoneId) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets the next execution time in a specific timezone 获取特定时区的下次执行时间
getNextExecutionTimes(String, int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets multiple next execution times 获取多个下次执行时间
getNextExecutionTimes(String, LocalDateTime, int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Gets multiple next execution times after a specific time 获取指定时间之后的多个执行时间
getNextMilestone() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the next milestone age 获取下一个里程碑年龄
getNextMilestoneDate() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the date of the next milestone birthday 获取下一个里程碑生日的日期
getObservedDate() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the observed date 获取调休日期
getOffset(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the current offset for a timezone 获取时区的当前偏移
getOffsetBetween(ZoneId, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the offset between two timezones 获取两个时区之间的偏移
getOffsetHours(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the offset in hours for a timezone 获取时区的小时偏移
getOffsetHours(ZoneId, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Gets the offset hours between two timezones 获取两个时区之间的偏移小时数
getPeriod() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the period 获取Period
getPeriod() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Gets the period part 获取周期部分
getProvider(String) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets a provider by country code 按国家代码获取提供者
getQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the Quarter enum 获取Quarter枚举
getQuarter(int) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the quarter for a month (1-4) 获取月份的季度(1-4)
getQuarter(LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the quarter for a date (1-4) 获取日期的季度(1-4)
getQuarterValue() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the quarter value (1-4) 获取季度值(1-4)
getReferenceDate() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the reference date 获取参考日期
getSeconds() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of seconds (0-59) 获取秒数(0-59)
getShortDisplayName(ZoneId, Locale) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the short display name of a timezone 获取时区的短显示名称
getShortName() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the short name (AM/PM) 获取短名称(AM/PM)
getSpecialWorkdays() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets all special workdays 获取所有特殊工作日
getStart() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the start temporal 获取开始时间
getStart() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the start temporal 获取开始时间
getStart() - Method in class cloud.opencode.base.date.extra.Interval
Gets the start instant (inclusive) 获取起始时刻(包含)
getStart() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Gets the start date (inclusive) 获取起始日期(包含)
getStart() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the start datetime (inclusive) 获取起始日期时间(包含)
getStart() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the start time 获取开始时间
getStart() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
getStart() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
getStart() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
getSupportedYearRange() - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Gets the supported year range 获取支持的年份范围
getTaskCount() - Method in class cloud.opencode.base.date.StopWatch
Gets the number of completed tasks 获取已完成任务的数量
getTasks() - Method in class cloud.opencode.base.date.StopWatch
Gets the list of completed tasks 获取已完成任务的列表
getTotalDays() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the total age in days 获取总天数的年龄
getTotalDays() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total days lived 获取生存的总天数
getTotalDuration() - Method in class cloud.opencode.base.date.StopWatch
Gets the total elapsed time as Duration 获取总经过时间作为Duration
getTotalHours() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total hours lived (approximate) 获取生存的总小时数(近似值)
getTotalMinutes() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total minutes lived (approximate) 获取生存的总分钟数(近似值)
getTotalMonths() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the total age in months 获取总月数的年龄
getTotalMonths() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total months lived 获取生存的总月数
getTotalSeconds() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total seconds lived (approximate) 获取生存的总秒数(近似值)
getTotalTimeMillis() - Method in class cloud.opencode.base.date.StopWatch
Gets the total elapsed time in milliseconds 获取总经过时间(毫秒)
getTotalTimeNanos() - Method in class cloud.opencode.base.date.StopWatch
Gets the total elapsed time in nanoseconds 获取总经过时间(纳秒)
getTotalTimeSeconds() - Method in class cloud.opencode.base.date.StopWatch
Gets the total elapsed time in seconds 获取总经过时间(秒)
getTotalWeekends() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total number of weekend days lived 获取生存的周末天数总数
getTotalWeeks() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the total age in weeks 获取总周数的年龄
getTotalWeeks() - Method in class cloud.opencode.base.date.between.AgeDetail
Gets the total weeks lived 获取生存的总周数
getType() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the type 获取类型
getUnits() - Method in class cloud.opencode.base.date.extra.Days
 
getUnits() - Method in class cloud.opencode.base.date.extra.Hours
 
getUnits() - Method in class cloud.opencode.base.date.extra.Minutes
 
getUnits() - Method in class cloud.opencode.base.date.extra.Months
 
getUnits() - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
getUnits() - Method in class cloud.opencode.base.date.extra.Seconds
 
getUnits() - Method in class cloud.opencode.base.date.extra.Weeks
 
getUnits() - Method in class cloud.opencode.base.date.extra.Years
 
getValue() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the value (0=AM, 1=PM) 获取值(0=AM,1=PM)
getValue() - Method in class cloud.opencode.base.date.extra.DayOfMonth
Gets the day-of-month value (1-31) 获取月份中的天值(1-31)
getValue() - Method in class cloud.opencode.base.date.extra.DayOfYear
Gets the day-of-year value (1-366) 获取年份中的天值(1-366)
getValue() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the quarter value (1-4) 获取季度值(1-4)
getValue() - Method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets the half value (1 or 2) 获取半年值(1或2)
getWeek() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the week number (1-52 or 53) 获取周数(1-52或53)
getWeekendDays() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the weekend days 获取周末天数
getYear() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the year 获取年份
getYear() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the year 获取年份
getYear() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the week-based year 获取周基准年
getYear() - Method in class cloud.opencode.base.date.holiday.Holiday
Gets the year of the holiday 获取假日的年份
getYears() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the age in complete years 获取完整年数的年龄
getYears() - Method in class cloud.opencode.base.date.between.DateDiff
Gets the number of complete years 获取完整年数
getZodiacSign() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the Western zodiac sign 获取西方星座
getZodiacSignChinese() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets the Western zodiac sign in Chinese 获取西方星座(中文)

H

H1 - Enum constant in enum class cloud.opencode.base.date.extra.YearHalf.Half
First half (January - June) 上半年(1月-6月)
H2 - Enum constant in enum class cloud.opencode.base.date.extra.YearHalf.Half
Second half (July - December) 下半年(7月-12月)
hasExpectedFormat() - Method in exception class cloud.opencode.base.date.exception.OpenDateException
Checks if expected format is available 检查期望格式是否可用
hashCode() - Method in class cloud.opencode.base.date.between.AgeBetween
 
hashCode() - Method in class cloud.opencode.base.date.between.AgeDetail
 
hashCode() - Method in class cloud.opencode.base.date.between.DateBetween
 
hashCode() - Method in class cloud.opencode.base.date.between.DateDiff
 
hashCode() - Method in class cloud.opencode.base.date.cron.CronExpression
 
hashCode() - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
hashCode() - Method in class cloud.opencode.base.date.extra.DayOfYear
 
hashCode() - Method in class cloud.opencode.base.date.extra.Days
 
hashCode() - Method in class cloud.opencode.base.date.extra.Hours
 
hashCode() - Method in class cloud.opencode.base.date.extra.Interval
 
hashCode() - Method in class cloud.opencode.base.date.extra.LocalDateRange
 
hashCode() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
 
hashCode() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
 
hashCode() - Method in class cloud.opencode.base.date.extra.Minutes
 
hashCode() - Method in class cloud.opencode.base.date.extra.Months
 
hashCode() - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
hashCode() - Method in class cloud.opencode.base.date.extra.Seconds
 
hashCode() - Method in class cloud.opencode.base.date.extra.Weeks
 
hashCode() - Method in class cloud.opencode.base.date.extra.YearHalf
 
hashCode() - Method in class cloud.opencode.base.date.extra.YearQuarter
 
hashCode() - Method in class cloud.opencode.base.date.extra.Years
 
hashCode() - Method in class cloud.opencode.base.date.extra.YearWeek
 
hashCode() - Method in class cloud.opencode.base.date.holiday.Holiday
 
hashCode() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
hashCode() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
hashCode() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
hashCode() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Returns a hash code value for this object.
hasInputValue() - Method in exception class cloud.opencode.base.date.exception.OpenDateException
Checks if input value is available 检查输入值是否可用
Holiday - Class in cloud.opencode.base.date.holiday
Represents a holiday with date and metadata 表示带有日期和元数据的假日
Holiday.Builder - Class in cloud.opencode.base.date.holiday
Builder for Holiday Holiday构建器
Holiday.HolidayType - Enum Class in cloud.opencode.base.date.holiday
Types of holidays 假日类型
HolidayCalendar - Class in cloud.opencode.base.date.holiday
A calendar for managing and querying holidays 管理和查询假日的日历
HolidayCalendar.Builder - Class in cloud.opencode.base.date.holiday
Builder for HolidayCalendar HolidayCalendar构建器
HolidayProvider - Interface in cloud.opencode.base.date.holiday
Interface for providing holiday data 节假日数据提供者接口
holidays(Predicate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the holiday predicate 设置假日谓词
holidays(Predicate) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Sets the holiday predicate 设置假日谓词
holidays(Set) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the holidays from a set 从集合设置假日
holidays(Set) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Sets the holidays from a set 从集合设置假日
HolidayUtil - Class in cloud.opencode.base.date.holiday
Utility class for holiday operations 节假日工具类
HONG_KONG - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
HONG_KONG - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Hong Kong Time 香港时间
hours() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of hours between start and end (signed) 获取开始和结束之间的小时数(带符号)
hours(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified hours 创建指定小时数的Duration
hours(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of consecutive hours from start (inclusive) to end (exclusive).
Hours - Class in cloud.opencode.base.date.extra
Hours unit class representing a number of hours 小时单位类,表示小时数
hoursBetween(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Calculates hours between two date-times 计算两个日期时间之间的小时数
HTTP_DATE - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
HTTP date format: EEE, dd MMM yyyy HH:mm:ss 'GMT' (RFC 7231) HTTP日期格式:EEE, dd MMM yyyy HH:mm:ss 'GMT'(RFC 7231)

I

INDIA - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
India Standard Time (Kolkata) 印度标准时间(加尔各答)
instant() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current Instant 获取当前Instant
instant() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current Instant 获取当前Instant
instant(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates an Instant from epoch milliseconds 从毫秒时间戳创建Instant
instant(long, long) - Static method in class cloud.opencode.base.date.DateTimes
Creates an Instant from epoch seconds 从秒时间戳创建Instant
intersection(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Gets the intersection of this interval with the specified interval 获取此区间与指定区间的交集
intersection(LocalDateRange) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Gets the intersection of this range with the specified range 获取此范围与指定范围的交集
intersection(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the intersection of this range with the specified range 获取此范围与指定范围的交集
intersection(LocalTimeRange) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Gets the intersection with another range 获取与另一个范围的交集
intersection(DateRange) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
intersection(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
intersection(TimeRange) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
interval(Instant, Duration) - Static method in class cloud.opencode.base.date.DateTimes
Creates an Interval from start and duration 从开始时刻和时长创建Interval
interval(Instant, Instant) - Static method in class cloud.opencode.base.date.DateTimes
Creates an Interval 创建Interval
Interval - Class in cloud.opencode.base.date.extra
Time Interval representing a span between two Instants 时间区间,表示两个Instant之间的时间跨度
invalidValue(String, Object, String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates an invalid value exception 创建无效值异常
isAdjustedWorkday(LocalDate) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Checks if a date is an adjusted workday (补班日) 检查日期是否为调休工作日(补班日)
isAdjustedWorkday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is an adjusted workday (补班日) 检查日期是否为调休工作日(补班日)
isAfter(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval is after the specified interval 检查此区间是否在指定区间之后
isAfter(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range is after the specified range 检查此范围是否在指定范围之后
isAfter(YearQuarter) - Method in class cloud.opencode.base.date.extra.YearQuarter
Checks if this YearQuarter is after the specified one 检查此YearQuarter是否在指定的之后
isAfter(YearWeek) - Method in class cloud.opencode.base.date.extra.YearWeek
Checks if this YearWeek is after the specified one 检查此YearWeek是否在指定的之后
isAfter(Instant) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval is after the specified instant 检查此区间是否在指定时刻之后
isAm() - Method in enum class cloud.opencode.base.date.extra.AmPm
Checks if this is AM 检查是否为上午
isBefore(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval is before the specified interval 检查此区间是否在指定区间之前
isBefore(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range is before the specified range 检查此范围是否在指定范围之前
isBefore(YearQuarter) - Method in class cloud.opencode.base.date.extra.YearQuarter
Checks if this YearQuarter is before the specified one 检查此YearQuarter是否在指定的之前
isBefore(YearWeek) - Method in class cloud.opencode.base.date.extra.YearWeek
Checks if this YearWeek is before the specified one 检查此YearWeek是否在指定的之前
isBefore(Instant) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval is before the specified instant 检查此区间是否在指定时刻之前
isBetween(LocalDate, LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is between start and end (inclusive on both ends).
isBetween(LocalDate, LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a date is between two dates (inclusive) 检查日期是否在两个日期之间(包含)
isBetween(LocalDate, LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a date is between two dates (inclusive) 检查日期是否在两个日期之间(包含边界)
isBetween(LocalDateTime, LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date-time is between start and end (inclusive on both ends).
isBetween(LocalDateTime, LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a datetime is between two datetimes (inclusive) 检查日期时间是否在两个日期时间之间(包含)
isBetween(LocalDateTime, LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a date-time is between two date-times (inclusive) 检查日期时间是否在两个日期时间之间(包含边界)
isBirthdayToday() - Method in class cloud.opencode.base.date.between.AgeBetween
Checks if today is the birthday 检查今天是否是生日
isBusinessDay(LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Checks if a date is a business day 检查日期是否为工作日
isConnected(LocalDateRange) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Checks if this range is connected (adjacent or overlapping) with the specified range 检查此范围是否与指定范围相连(相邻或重叠)
isConnected(DateRange) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
isDaylightSavingTime(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Checks if a timezone is currently in DST 检查时区当前是否处于夏令时
isDayOff() - Method in class cloud.opencode.base.date.holiday.Holiday
Checks if this is a day off 检查是否放假
isEmpty() - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval is empty (start equals end) 检查此区间是否为空(起始等于结束)
isEmpty() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Checks if this range is empty 检查此范围是否为空
isEmpty() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range is empty (start equals end) 检查此范围是否为空(起始等于结束)
isEmpty() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
isEmpty() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
isEmpty() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
isFirst() - Method in class cloud.opencode.base.date.extra.DayOfMonth
Checks if this is the first day of month 检查是否为月份的第一天
isFirst() - Method in class cloud.opencode.base.date.extra.DayOfYear
Checks if this is the first day of year 检查是否为年份的第一天
isFirstDayOfMonth(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is the first day of its month.
isFirstQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Checks if this is the first quarter of the year 检查是否为年度第一季度
isFirstWeek() - Method in class cloud.opencode.base.date.extra.YearWeek
Checks if this is the first week of the year 检查是否为年度第一周
isFriday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Friday.
isFuture(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is strictly after today.
isFuture(LocalDateTime) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date-time is strictly after the current date-time.
isHoliday(LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Checks if a date is a holiday 检查日期是否为假日
isHoliday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Checks if a date is a holiday 检查日期是否为假日
isHoliday(LocalDate) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Checks if a date is a holiday 检查日期是否为节假日
isHoliday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is a holiday 检查日期是否为节假日
isHoliday(LocalDate, HolidayProvider) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is a holiday using specified provider 使用指定提供者检查日期是否为节假日
isLastDayOfMonth(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is the last day of its month.
isLastQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Checks if this is the last quarter of the year 检查是否为年度最后一个季度
isLastWeek() - Method in class cloud.opencode.base.date.extra.YearWeek
Checks if this is the last week of the year 检查是否为年度最后一周
isLeap() - Method in class cloud.opencode.base.date.extra.Years
 
isLeapDay() - Method in class cloud.opencode.base.date.extra.DayOfYear
Checks if this is day 366 (leap year only) 检查是否为第366天(仅闰年)
isLeapYear() - Method in class cloud.opencode.base.date.extra.YearQuarter
Checks if this year is a leap year 检查此年份是否为闰年
isLeapYear(int) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a year is a leap year 检查年份是否为闰年
isLeapYear(int) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a year is a leap year 检查年份是否为闰年
isLeapYear(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date falls in a leap year.
isLeapYear(LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a date is in a leap year 检查日期是否在闰年中
isMonday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Monday.
isNegative() - Method in class cloud.opencode.base.date.between.DateDiff
Checks if the difference is negative (end before start) 检查差异是否为负(结束在开始之前)
isNegative() - Method in class cloud.opencode.base.date.extra.Days
 
isNegative() - Method in class cloud.opencode.base.date.extra.Hours
 
isNegative() - Method in class cloud.opencode.base.date.extra.Minutes
 
isNegative() - Method in class cloud.opencode.base.date.extra.Months
 
isNegative() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Checks if this is negative 检查是否为负
isNegative() - Method in class cloud.opencode.base.date.extra.Seconds
 
isNegative() - Method in class cloud.opencode.base.date.extra.Weeks
 
isNegative() - Method in class cloud.opencode.base.date.extra.Years
 
ISO_DATE - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
ISO date format: yyyy-MM-dd (same as DateTimeFormatter.ISO_LOCAL_DATE) ISO日期格式:yyyy-MM-dd(与DateTimeFormatter.ISO_LOCAL_DATE相同)
ISO_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
ISO datetime format: yyyy-MM-dd'T'HH:mm:ss ISO日期时间格式:yyyy-MM-dd'T'HH:mm:ss
ISO_OFFSET_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
ISO offset datetime format: yyyy-MM-dd'T'HH:mm:ssXXX ISO偏移日期时间格式:yyyy-MM-dd'T'HH:mm:ssXXX
ISO_TIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
ISO time format: HH:mm:ss (same as DateTimeFormatter.ISO_LOCAL_TIME) ISO时间格式:HH:mm:ss(与DateTimeFormatter.ISO_LOCAL_TIME相同)
ISO_ZONED_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
ISO zoned datetime format: yyyy-MM-dd'T'HH:mm:ssXXX[VV] ISO带时区日期时间格式:yyyy-MM-dd'T'HH:mm:ssXXX[VV]
isOn(LocalDate) - Method in class cloud.opencode.base.date.holiday.Holiday
Checks if the holiday falls on the specified date 检查假日是否在指定日期
isPast(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is strictly before today.
isPast(LocalDateTime) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date-time is strictly before the current date-time.
isPm() - Method in enum class cloud.opencode.base.date.extra.AmPm
Checks if this is PM 检查是否为下午
isPositive() - Method in class cloud.opencode.base.date.extra.Days
 
isPositive() - Method in class cloud.opencode.base.date.extra.Hours
 
isPositive() - Method in class cloud.opencode.base.date.extra.Minutes
 
isPositive() - Method in class cloud.opencode.base.date.extra.Months
 
isPositive() - Method in class cloud.opencode.base.date.extra.Seconds
 
isPositive() - Method in class cloud.opencode.base.date.extra.Weeks
 
isPositive() - Method in class cloud.opencode.base.date.extra.Years
 
isPossibleLastDay() - Method in class cloud.opencode.base.date.extra.DayOfMonth
Checks if this could be the last day of any month 检查是否可能是某月的最后一天
isPublicHoliday() - Method in class cloud.opencode.base.date.holiday.Holiday
Checks if this is a public holiday 检查是否为公共假日
isPublicHoliday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Checks if a date is a public holiday 检查日期是否为公共假日
isRunning() - Method in class cloud.opencode.base.date.StopWatch
Checks if the stopwatch is currently running 检查计时器是否正在运行
isSameDay(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if two dates represent the same day.
isSameDay(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if two date-times represent the same day (ignoring time).
isSameMonth(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if two dates fall in the same year and month.
isSameWeek(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if two dates fall in the same ISO week (same week-based year and week number).
isSameYear(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if two dates fall in the same year.
isSaturday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Saturday.
isSpecialWorkday(LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Checks if a date is a special workday 检查日期是否为特殊工作日
isSpecialWorkday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Checks if a date is a special workday 检查日期是否为特殊工作日
isSunday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Sunday.
isSupported(TemporalField) - Method in enum class cloud.opencode.base.date.extra.AmPm
 
isSupported(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
isSupported(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
isSupported(TemporalField) - Method in enum class cloud.opencode.base.date.extra.Quarter
 
isSupported(TemporalField) - Method in class cloud.opencode.base.date.extra.YearHalf
 
isSupported(TemporalField) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
isSupported(TemporalField) - Method in class cloud.opencode.base.date.extra.YearWeek
 
isSupported(TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearHalf
 
isSupported(TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
isSupported(TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearWeek
 
isThursday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Thursday.
isToday(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a date is today 检查日期是否为今天
isTomorrow(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a date is tomorrow 检查日期是否为明天
isTuesday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Tuesday.
isValid(String) - Static method in class cloud.opencode.base.date.cron.CronUtil
Checks if a Cron expression is valid 检查Cron表达式是否有效
isValidDate(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Checks if the given text can be parsed as a date 检查给定文本是否可以解析为日期
isValidDateTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Checks if the given text can be parsed as a datetime 检查给定文本是否可以解析为日期时间
isValidFor(int) - Method in class cloud.opencode.base.date.extra.DayOfYear
Checks if this day is valid for the given year 检查此天在给定年份中是否有效
isValidFor(Month, boolean) - Method in class cloud.opencode.base.date.extra.DayOfMonth
Checks if this day is valid for the given month in a leap year 检查此天在闰年的给定月份中是否有效
isValidFor(Year) - Method in class cloud.opencode.base.date.extra.DayOfYear
Checks if this day is valid for the given year 检查此天在给定年份中是否有效
isValidFor(YearMonth) - Method in class cloud.opencode.base.date.extra.DayOfMonth
Checks if this day is valid for the given YearMonth 检查此天在给定YearMonth中是否有效
isValidForAllYears() - Method in class cloud.opencode.base.date.extra.DayOfYear
Checks if this day is valid for both leap and non-leap years 检查此天在闰年和非闰年中是否都有效
isValidTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Checks if the given text can be parsed as a time 检查给定文本是否可以解析为时间
isValidTimezone(String) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Checks if a timezone ID is valid 检查时区ID是否有效
isWednesday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date is a Wednesday.
isWeekday(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date falls on a weekday (Monday through Friday).
isWeekday(LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a date is a weekday 检查日期是否为工作日(周一到周五)
isWeekend(LocalDate) - Static method in class cloud.opencode.base.date.DatePredicates
Checks if the given date falls on a weekend (Saturday or Sunday).
isWeekend(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Checks if a date is a weekend 检查日期是否为周末
isWeekend(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is a weekend (Saturday or Sunday) 检查日期是否为周末(星期六或星期日)
isWeekend(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a date is a weekend (Saturday or Sunday) 检查日期是否为周末(周六或周日)
isWeekend(LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Checks if a date is a weekend 检查日期是否为周末
isWorkday(LocalDate) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Checks if a date is a workday 检查日期是否为工作日
isWorkday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Checks if a date is a workday 检查日期是否为工作日
isWorkday(LocalDate) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Checks if a date is a workday 检查日期是否为工作日
isWorkday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is a workday 检查日期是否为工作日
isWorkday(LocalDate, HolidayProvider) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Checks if a date is a workday using specified provider 使用指定提供者检查日期是否为工作日
isYearSupported(int) - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Checks if a year is supported 检查年份是否受支持
isYesterday(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Checks if a date is yesterday 检查日期是否为昨天
isZero() - Method in class cloud.opencode.base.date.extra.Days
 
isZero() - Method in class cloud.opencode.base.date.extra.Hours
 
isZero() - Method in class cloud.opencode.base.date.extra.Minutes
 
isZero() - Method in class cloud.opencode.base.date.extra.Months
 
isZero() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Checks if this is zero 检查是否为零
isZero() - Method in class cloud.opencode.base.date.extra.Seconds
 
isZero() - Method in class cloud.opencode.base.date.extra.Weeks
 
isZero() - Method in class cloud.opencode.base.date.extra.Years
 
iterate(LocalDateTime, LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of date-times from start (inclusive) to end (exclusive) with a custom duration step.
iterator() - Method in class cloud.opencode.base.date.extra.LocalDateRange
 
iterator() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 

J

JAPAN - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Japan Standard Time (Tokyo) 日本标准时间(东京)

K

KOREA - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Korea Standard Time (Seoul) 韩国标准时间(首尔)

L

lastDayOfHalf() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of half-year adjuster.
lastDayOfMonth() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of month adjuster.
lastDayOfQuarter() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of quarter adjuster.
lastDayOfWeek() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of week adjuster (Sunday).
lastDayOfWeek(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of week adjuster for specific last day.
lastDayOfYear() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the last day of year adjuster.
lastHour() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the last hour of this period (11 for AM, 23 for PM) 获取此时段的最后一个小时(AM为11,PM为23)
lastMonth() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the last month of this quarter (3, 6, 9, or 12) 获取季度的最后一个月(3, 6, 9, 或 12)
lastMonth() - Method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets the last month of this half 获取此半年的最后一个月
lastMonthOfQuarter() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the last Month enum of this quarter 获取季度的最后一个Month枚举
lastOf(int) - Static method in class cloud.opencode.base.date.extra.DayOfYear
Gets the last day of year for the given year 获取给定年份的最后一天
length(boolean) - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the length of this quarter in days 获取季度的天数
lengthInDays() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Gets the length in days (inclusive count) 获取天数(包含计数)
lengthInDays() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the length of this year-half in days 获取此年-半年的天数
lengthInDays() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
lengthInMonths() - Method in class cloud.opencode.base.date.extra.YearHalf
Gets the length of this year-half in months 获取此年-半年的月数
lengthOfQuarter() - Method in class cloud.opencode.base.date.extra.YearQuarter
Gets the length of this quarter in days 获取此季度的天数
lengthOfYear() - Method in class cloud.opencode.base.date.extra.YearWeek
Gets the number of weeks in this week-based year 获取此周基准年的周数
LocalDateRange - Class in cloud.opencode.base.date.extra
Date Range representing a span of LocalDates 日期范围,表示LocalDate的跨度
LocalDateTimeRange - Class in cloud.opencode.base.date.extra
DateTime Range representing a span of LocalDateTimes 日期时间范围,表示LocalDateTime的跨度
LocalTimeRange - Class in cloud.opencode.base.date.extra
A time range representing a span between two LocalTime values 表示两个LocalTime值之间跨度的时间范围
LONDON - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
LONDON - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
UK Time (London) 英国时间(伦敦)
LOS_ANGELES - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
LOS_ANGELES - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
US Pacific Time (Los Angeles) 美国太平洋时间(洛杉矶)

M

matches(LocalDateTime) - Method in class cloud.opencode.base.date.cron.CronExpression
Checks if the expression matches the specified date-time 检查表达式是否匹配指定的日期时间
max(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the maximum of two dates 获取两个日期中的较大值
max(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the maximum of two date-times 获取两个日期时间中的较大值
middleEastWeekend() - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the weekend days as Friday and Saturday (Middle East) 设置周末为周五和周六(中东)
middleEastWeekend() - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Sets the weekend days as Friday and Saturday (Middle East) 设置周末为周五和周六(中东)
midnight() - Static method in class cloud.opencode.base.date.DateTimes
Gets midnight (00:00:00) 获取午夜(00:00:00)
millis() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of milliseconds between start and end (signed) 获取开始和结束之间的毫秒数(带符号)
millis(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified milliseconds 创建指定毫秒数的Duration
min(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the minimum of two dates 获取两个日期中的较小值
min(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the minimum of two date-times 获取两个日期时间中的较小值
minus(int) - Method in class cloud.opencode.base.date.extra.Days
 
minus(int) - Method in class cloud.opencode.base.date.extra.Months
 
minus(int) - Method in enum class cloud.opencode.base.date.extra.Quarter
Subtracts quarters from this quarter 在此季度基础上减季度数
minus(int) - Method in class cloud.opencode.base.date.extra.Weeks
 
minus(int) - Method in class cloud.opencode.base.date.extra.Years
 
minus(long) - Method in class cloud.opencode.base.date.extra.Hours
 
minus(long) - Method in class cloud.opencode.base.date.extra.Minutes
 
minus(long) - Method in class cloud.opencode.base.date.extra.Seconds
 
minus(long, ChronoUnit) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster that subtracts the specified number of units 返回减去指定数量单位的调整器
minus(Days) - Method in class cloud.opencode.base.date.extra.Days
 
minus(Hours) - Method in class cloud.opencode.base.date.extra.Hours
 
minus(Minutes) - Method in class cloud.opencode.base.date.extra.Minutes
 
minus(Months) - Method in class cloud.opencode.base.date.extra.Months
 
minus(PeriodDuration) - Method in class cloud.opencode.base.date.extra.PeriodDuration
Subtracts another PeriodDuration from this 减去另一个PeriodDuration
minus(Seconds) - Method in class cloud.opencode.base.date.extra.Seconds
 
minus(Weeks) - Method in class cloud.opencode.base.date.extra.Weeks
 
minus(Years) - Method in class cloud.opencode.base.date.extra.Years
 
minusDays(int) - Static method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Creates an adjuster that subtracts the specified number of business days 创建减去指定工作日数的调整器
minusDays(int) - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that subtracts the specified number of workdays 创建减去指定工作日数的调整器
minusHalves(long) - Method in class cloud.opencode.base.date.extra.YearHalf
Subtracts halves from this year-half 从此年-半年减去半年
minusQuarters(long) - Method in class cloud.opencode.base.date.extra.YearQuarter
Subtracts quarters from this YearQuarter 在此YearQuarter基础上减季度数
minusWeeks(long) - Method in class cloud.opencode.base.date.extra.YearWeek
Subtracts weeks from this YearWeek 在此YearWeek基础上减周数
minusWorkdays(int) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns an adjuster that subtracts workdays.
minusWorkdays(LocalDate, int) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Subtracts workdays from a date 从日期减去工作日
minusYears(long) - Method in class cloud.opencode.base.date.extra.YearHalf
Subtracts years from this year-half 从此年-半年减去年
minusYears(long) - Method in class cloud.opencode.base.date.extra.YearQuarter
Subtracts years from this YearQuarter 在此YearQuarter基础上减年数
minusYears(long) - Method in class cloud.opencode.base.date.extra.YearWeek
Subtracts years from this YearWeek 在此YearWeek基础上减年数
minutes() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of minutes between start and end (signed) 获取开始和结束之间的分钟数(带符号)
minutes(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified minutes 创建指定分钟数的Duration
Minutes - Class in cloud.opencode.base.date.extra
Minutes unit class representing a number of minutes 分钟单位类,表示分钟数
minutesBetween(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Calculates minutes between two date-times 计算两个日期时间之间的分钟数
MONTHLY - Static variable in class cloud.opencode.base.date.cron.CronExpression
First day of every month at midnight 每月第一天午夜
MONTHLY_FIRST - Static variable in class cloud.opencode.base.date.cron.CronUtil
First day of every month at midnight
months() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of complete months between start and end (signed) 获取开始和结束之间的完整月数(带符号)
months(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Period of the specified months 创建指定月数的Period
months(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of consecutive months derived from a date range.
months(YearMonth, YearMonth) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of consecutive months from start (inclusive) to end (exclusive).
Months - Class in cloud.opencode.base.date.extra
Months unit class representing a number of months 月数单位类,表示月数
monthsBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the number of months between two dates 获取两个日期之间的月数
monthsBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Calculates months between two dates 计算两个日期之间的月数
MORNING - Static variable in class cloud.opencode.base.date.extra.LocalTimeRange
Morning (6:00 - 12:00)
multipliedBy(int) - Method in class cloud.opencode.base.date.extra.Days
 
multipliedBy(int) - Method in class cloud.opencode.base.date.extra.Months
 
multipliedBy(int) - Method in class cloud.opencode.base.date.extra.PeriodDuration
Multiplies this PeriodDuration by a scalar 乘以标量
multipliedBy(int) - Method in class cloud.opencode.base.date.extra.Weeks
 
multipliedBy(int) - Method in class cloud.opencode.base.date.extra.Years
 
multipliedBy(long) - Method in class cloud.opencode.base.date.extra.Hours
 
multipliedBy(long) - Method in class cloud.opencode.base.date.extra.Minutes
 
multipliedBy(long) - Method in class cloud.opencode.base.date.extra.Seconds
 

N

name() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Returns the value of the name record component.
name(String) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the name 设置名称
name(String) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Sets the calendar name 设置日历名称
nanos(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified nanoseconds 创建指定纳秒数的Duration
nearestWeekday() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster to the nearest weekday 返回最近工作日的调整器
nearestWorkday() - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that finds the nearest workday (or same if already a workday) 创建查找最近工作日的调整器(如果已是工作日则返回原日期)
negated() - Method in class cloud.opencode.base.date.extra.Days
 
negated() - Method in class cloud.opencode.base.date.extra.Hours
 
negated() - Method in class cloud.opencode.base.date.extra.Minutes
 
negated() - Method in class cloud.opencode.base.date.extra.Months
 
negated() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Negates this PeriodDuration 取负
negated() - Method in class cloud.opencode.base.date.extra.Seconds
 
negated() - Method in class cloud.opencode.base.date.extra.Weeks
 
negated() - Method in class cloud.opencode.base.date.extra.Years
 
NEW_YORK - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
NEW_YORK - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
US Eastern Time (New York) 美国东部时间(纽约)
next() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the next quarter 获取下一个季度
next(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster for the next occurrence of a day of week (strictly after) 返回下一个星期几的调整器(严格之后)
next(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the next day of week adjuster.
nextBusinessDay() - Static method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Creates an adjuster that finds the next business day 创建查找下一个工作日的调整器
nextExecution() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the next execution time after now 获取当前之后的下一次执行时间
nextExecution(LocalDateTime) - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the next execution time after the specified time 获取指定时间之后的下一次执行时间
nextExecutions(int) - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the next N execution times 获取接下来的N次执行时间
nextExecutions(LocalDateTime, int) - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the next N execution times after the specified time 获取指定时间之后的N次执行时间
nextFrom(LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Finds the next business day from a given date 从给定日期查找下一个工作日
nextMonthDay(Month, int) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster to the next occurrence of a specific month and day 返回下一个特定月日的调整器
nextOrSame(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster for the next or same occurrence of a day of week 返回下一个或相同星期几的调整器
nextOrSame(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the next or same day of week adjuster.
nextOrSameWorkday() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the next or same workday adjuster.
nextOrSameWorkday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets the next workday on or after the given date 获取给定日期当天或之后的下一个工作日
nextWorkday() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the next workday adjuster (skips weekends).
nextWorkday() - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that finds the next workday 创建查找下一个工作日的调整器
nextWorkday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the next workday after the specified date 获取指定日期之后的下一个工作日
nextWorkday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets the next workday after the given date 获取给定日期之后的下一个工作日
nextWorkday(Set) - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that finds the next workday with custom holidays 创建查找下一个工作日并考虑自定义假日的调整器
noon() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the noon adjuster (12:00:00).
noon() - Static method in class cloud.opencode.base.date.DateTimes
Gets noon (12:00:00) 获取中午(12:00:00)
NORM_DATE - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Standard date format: yyyy-MM-dd (e.g., 2024-01-15) 标准日期格式:yyyy-MM-dd(例如:2024-01-15)
NORM_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Standard datetime format: yyyy-MM-dd HH:mm:ss (e.g., 2024-01-15 14:30:45) 标准日期时间格式:yyyy-MM-dd HH:mm:ss(例如:2024-01-15 14:30:45)
NORM_DATETIME_MS - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Datetime with milliseconds: yyyy-MM-dd HH:mm:ss.SSS 带毫秒的日期时间:yyyy-MM-dd HH:mm:ss.SSS
NORM_MONTH - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Year-month format: yyyy-MM (e.g., 2024-01) 年-月格式:yyyy-MM(例如:2024-01)
NORM_TIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Standard time format: HH:mm:ss (e.g., 14:30:45) 标准时间格式:HH:mm:ss(例如:14:30:45)
NORM_TIME_MS - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Time with milliseconds: HH:mm:ss.SSS 带毫秒的时间:HH:mm:ss.SSS
NORM_YEAR - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Year format: yyyy (e.g., 2024) 年份格式:yyyy(例如:2024)
normalized() - Method in class cloud.opencode.base.date.extra.PeriodDuration
Normalizes this PeriodDuration 标准化此PeriodDuration
now() - Static method in class cloud.opencode.base.date.DateTimes
Gets the current datetime 获取当前日期时间
now() - Static method in enum class cloud.opencode.base.date.extra.AmPm
Gets the current AmPm 获取当前的上午/下午
now() - Static method in class cloud.opencode.base.date.extra.DayOfMonth
Gets the current day of month 获取当前月份中的天
now() - Static method in class cloud.opencode.base.date.extra.DayOfYear
Gets the current day of year 获取当前年份中的天
now() - Static method in class cloud.opencode.base.date.extra.YearHalf
Gets the current YearHalf 获取当前YearHalf
now() - Static method in class cloud.opencode.base.date.extra.YearQuarter
Gets the current YearQuarter using system default zone 使用系统默认时区获取当前YearQuarter
now() - Static method in class cloud.opencode.base.date.extra.YearWeek
Gets the current YearWeek using system default zone 使用系统默认时区获取当前YearWeek
now() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current datetime 获取当前日期时间
now(Clock) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Gets the current YearQuarter using the specified clock 使用指定时钟获取当前YearQuarter
now(Clock) - Static method in class cloud.opencode.base.date.extra.YearWeek
Gets the current YearWeek using the specified clock 使用指定时钟获取当前YearWeek
now(ZoneId) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Gets the current YearQuarter for the specified zone 获取指定时区的当前YearQuarter
now(ZoneId) - Static method in class cloud.opencode.base.date.extra.YearWeek
Gets the current YearWeek for the specified zone 获取指定时区的当前YearWeek
now(ZoneId) - Static method in class cloud.opencode.base.date.OpenDate
Gets the current datetime for the specified zone 获取指定时区的当前日期时间
now(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Gets the current time in the specified timezone 获取指定时区的当前时间
now(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the current time in the specified timezone 获取指定时区的当前时间
nowLocal() - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the current time in the system default timezone 获取系统默认时区的当前时间
nowUtc() - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Gets the current time in UTC 获取UTC当前时间
nthBusinessDayOfMonth(int, int, int) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Finds the nth business day of the month 查找月份的第N个工作日
nthDayOfWeekInMonth(int, DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the nth weekday of the month adjuster 返回月份第N个工作日调整器

O

OBSERVANCE - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Observance (not necessarily a day off) 纪念日(不一定放假)
observedDate(LocalDate) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the observed date 设置调休日期
of(int) - Static method in enum class cloud.opencode.base.date.extra.AmPm
Gets the AmPm from a value (0=AM, 1=PM) 从值获取AmPm(0=AM,1=PM)
of(int) - Static method in class cloud.opencode.base.date.extra.DayOfMonth
Creates a DayOfMonth from a value (1-31) 从值(1-31)创建DayOfMonth
of(int) - Static method in class cloud.opencode.base.date.extra.DayOfYear
Creates a DayOfYear from a value (1-366) 从值(1-366)创建DayOfYear
of(int) - Static method in class cloud.opencode.base.date.extra.Days
 
of(int) - Static method in class cloud.opencode.base.date.extra.Months
 
of(int) - Static method in enum class cloud.opencode.base.date.extra.Quarter
Gets the Quarter from a numeric value (1-4) 从数值(1-4)获取季度
of(int) - Static method in class cloud.opencode.base.date.extra.Weeks
 
of(int) - Static method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets a Half from value 从值获取Half
of(int) - Static method in class cloud.opencode.base.date.extra.Years
 
of(int, int) - Static method in class cloud.opencode.base.date.extra.YearHalf
Creates a YearHalf from year and half value 从年份和半年值创建YearHalf
of(int, int) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Creates a YearQuarter from year and quarter value 从年份和季度值创建YearQuarter
of(int, int) - Static method in class cloud.opencode.base.date.extra.YearWeek
Creates a YearWeek from week-based year and week 从周基准年和周创建YearWeek
of(int, int, int) - Static method in class cloud.opencode.base.date.OpenDate
Creates a LocalDate 创建LocalDate
of(int, int, int, int, int, int) - Static method in class cloud.opencode.base.date.OpenDate
Creates a LocalDateTime 创建LocalDateTime
of(int, Quarter) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Creates a YearQuarter from year and Quarter enum 从年份和Quarter枚举创建YearQuarter
of(int, YearHalf.Half) - Static method in class cloud.opencode.base.date.extra.YearHalf
Creates a YearHalf from year and half 从年份和半年创建YearHalf
of(long) - Static method in class cloud.opencode.base.date.extra.Days
 
of(long) - Static method in class cloud.opencode.base.date.extra.Hours
 
of(long) - Static method in class cloud.opencode.base.date.extra.Minutes
 
of(long) - Static method in class cloud.opencode.base.date.extra.Months
 
of(long) - Static method in class cloud.opencode.base.date.extra.Seconds
 
of(long) - Static method in class cloud.opencode.base.date.extra.Weeks
 
of(long) - Static method in class cloud.opencode.base.date.extra.Years
 
of(AgeBetween) - Static method in class cloud.opencode.base.date.between.AgeDetail
Creates an AgeDetail from an AgeBetween 从AgeBetween创建AgeDetail
of(Duration, Instant) - Static method in class cloud.opencode.base.date.extra.Interval
Creates an Interval from end Instant and Duration 从结束Instant和时长创建Interval
of(Instant, Duration) - Static method in class cloud.opencode.base.date.extra.Interval
Creates an Interval from start Instant and Duration 从起始Instant和时长创建Interval
of(Instant, Instant) - Static method in class cloud.opencode.base.date.extra.Interval
Creates an Interval from start and end Instants 从起始和结束Instant创建Interval
of(LocalDate) - Static method in class cloud.opencode.base.date.between.AgeDetail
Creates an AgeDetail from a birth date 从出生日期创建AgeDetail
of(LocalDate, String) - Static method in class cloud.opencode.base.date.holiday.Holiday
Creates a simple holiday 创建简单假日
of(LocalDate, String, Holiday.HolidayType) - Static method in class cloud.opencode.base.date.holiday.Holiday
Creates a holiday with type 创建带类型的假日
of(LocalDate, String, String, Holiday.HolidayType) - Static method in class cloud.opencode.base.date.holiday.Holiday
Creates a holiday with bilingual names 创建双语名称的假日
of(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.between.AgeDetail
Creates an AgeDetail from a birth date to a reference date 从出生日期到参考日期创建AgeDetail
of(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.between.DateBetween
Creates a DateBetween from two LocalDate objects 从两个LocalDate对象创建DateBetween
of(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.between.DateDiff
Creates a DateDiff from two LocalDate objects 从两个LocalDate对象创建DateDiff
of(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.extra.LocalDateRange
Creates a LocalDateRange from start and end dates (both inclusive) 从起始和结束日期创建LocalDateRange(两端包含)
of(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.range.DateRange
Deprecated.
Creates a DateRange (inclusive on both ends) 创建日期范围(两端都包含)
of(LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates a LocalDateTimeRange from start DateTime and Duration 从起始日期时间和时长创建LocalDateTimeRange
of(LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Creates a DateTimeRange with a duration 使用时长创建日期时间范围
of(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.between.DateBetween
Creates a DateBetween from two LocalDateTime objects 从两个LocalDateTime对象创建DateBetween
of(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.between.DateDiff
Creates a DateDiff from two LocalDateTime objects 从两个LocalDateTime对象创建DateDiff
of(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates a LocalDateTimeRange from start and end DateTimes 从起始和结束日期时间创建LocalDateTimeRange
of(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Creates a DateTimeRange 创建日期时间范围
of(LocalTime, LocalTime) - Static method in class cloud.opencode.base.date.extra.LocalTimeRange
Creates a LocalTimeRange from two times 从两个时间创建LocalTimeRange
of(LocalTime, LocalTime) - Static method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
Creates a TimeRange 创建时间范围
of(Period, Duration) - Static method in class cloud.opencode.base.date.extra.PeriodDuration
Creates a PeriodDuration from Period and Duration 从Period和Duration创建PeriodDuration
of(TemporalAdjuster) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Creates adjuster from lambda.
of(Temporal, Temporal) - Static method in class cloud.opencode.base.date.between.DateDiff
Creates a DateDiff from any two Temporal objects 从任意两个Temporal对象创建DateDiff
of(Collection) - Static method in class cloud.opencode.base.date.holiday.HolidayCalendar
Creates a calendar from a collection of holidays 从假日集合创建日历
ofDay(LocalDate) - Static method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates a LocalDateTimeRange for an entire day 创建整天的LocalDateTimeRange
ofDays(int) - Static method in class cloud.opencode.base.date.extra.Weeks
 
ofDays(long) - Static method in class cloud.opencode.base.date.extra.Hours
 
ofDays(long) - Static method in class cloud.opencode.base.date.extra.Minutes
 
ofDays(long) - Static method in class cloud.opencode.base.date.extra.Seconds
 
ofDuration(Duration) - Static method in class cloud.opencode.base.date.extra.PeriodDuration
Creates a PeriodDuration from Duration only 仅从Duration创建PeriodDuration
ofDuration(LocalTime, Duration) - Static method in class cloud.opencode.base.date.extra.LocalTimeRange
Creates a LocalTimeRange from start time and duration 从开始时间和持续时间创建LocalTimeRange
ofEpochMilli(long) - Static method in class cloud.opencode.base.date.OpenDate
Creates a LocalDateTime from epoch milliseconds 从毫秒时间戳创建LocalDateTime
ofEpochSecond(long) - Static method in class cloud.opencode.base.date.OpenDate
Creates a LocalDateTime from epoch seconds 从秒时间戳创建LocalDateTime
ofExclusive(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.extra.LocalDateRange
Creates a LocalDateRange from start and end dates (end exclusive) 从起始和结束日期创建LocalDateRange(结束不包含)
ofExclusive(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.range.DateRange
Deprecated.
Creates a DateRange (exclusive end) 创建日期范围(不包含结束日期)
ofHour(int) - Static method in enum class cloud.opencode.base.date.extra.AmPm
Gets the AmPm from an hour (0-23) 从小时获取AmPm(0-23)
ofHours(int, int) - Static method in class cloud.opencode.base.date.extra.LocalTimeRange
Creates a LocalTimeRange from hours 从小时创建LocalTimeRange
ofHours(long) - Static method in class cloud.opencode.base.date.extra.Minutes
 
ofHours(long) - Static method in class cloud.opencode.base.date.extra.Seconds
 
ofMinutes(long) - Static method in class cloud.opencode.base.date.extra.Hours
 
ofMinutes(long) - Static method in class cloud.opencode.base.date.extra.Seconds
 
ofMonth(int) - Static method in enum class cloud.opencode.base.date.extra.Quarter
Gets the Quarter from a month value (1-12) 从月份值(1-12)获取季度
ofMonth(int) - Static method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets the Half containing the specified month 获取包含指定月份的Half
ofMonth(Month) - Static method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Gets the Half containing the specified month 获取包含指定月份的Half
ofPattern(String) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Gets or creates a cached DateTimeFormatter for the given pattern 获取或创建给定模式的缓存DateTimeFormatter
ofPattern(String, Locale) - Static method in class cloud.opencode.base.date.formatter.DateFormatter
Gets or creates a cached DateTimeFormatter for the given pattern and locale 获取或创建给定模式和区域设置的缓存DateTimeFormatter
ofPeriod(Period) - Static method in class cloud.opencode.base.date.extra.PeriodDuration
Creates a PeriodDuration from Period only 仅从Period创建PeriodDuration
ofSeconds(long) - Static method in class cloud.opencode.base.date.extra.Minutes
 
ofWeeks(int) - Static method in class cloud.opencode.base.date.extra.Days
 
ofYears(int) - Static method in class cloud.opencode.base.date.extra.Months
 
ONE - Static variable in class cloud.opencode.base.date.extra.Days
 
ONE - Static variable in class cloud.opencode.base.date.extra.Months
 
ONE - Static variable in class cloud.opencode.base.date.extra.Weeks
 
ONE - Static variable in class cloud.opencode.base.date.extra.Years
 
OpenDate - Class in cloud.opencode.base.date
Core Date Utility Class - Main Entry Point for OpenCode Date Module 核心日期工具类 - OpenCode日期模块的主入口
OpenDateException - Exception Class in cloud.opencode.base.date.exception
Date Exception Class for OpenCode Date Module OpenCode日期模块异常类
OpenDateException(String) - Constructor for exception class cloud.opencode.base.date.exception.OpenDateException
Constructs an exception with a message 使用消息构造异常
OpenDateException(String, String, String) - Constructor for exception class cloud.opencode.base.date.exception.OpenDateException
Constructs an exception with all details 使用所有详细信息构造异常
OpenDateException(String, String, String, Throwable) - Constructor for exception class cloud.opencode.base.date.exception.OpenDateException
Constructs an exception with all details and cause 使用所有详细信息和原因构造异常
OpenDateException(String, Throwable) - Constructor for exception class cloud.opencode.base.date.exception.OpenDateException
Constructs an exception with a message and cause 使用消息和原因构造异常
opposite() - Method in enum class cloud.opencode.base.date.extra.AmPm
Gets the opposite period 获取相反的时段
overlaps(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Checks if this interval overlaps with the specified interval 检查此区间是否与指定区间重叠
overlaps(LocalDateRange) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Checks if this range overlaps with the specified range 检查此范围是否与指定范围重叠
overlaps(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Checks if this range overlaps with the specified range 检查此范围是否与指定范围重叠
overlaps(LocalTimeRange) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Checks if this range overlaps with another range 检查此范围是否与另一个范围重叠
overlaps(DateRange) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
overlaps(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
overlaps(TimeRange) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 

P

PARIS - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
PARIS - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Central European Time (Paris) 中欧时间(巴黎)
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.Interval
Parses an ISO 8601 interval string 解析ISO 8601区间字符串
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.LocalDateRange
Parses a string to LocalDateRange 解析字符串为LocalDateRange
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Parses a string to LocalDateTimeRange 解析字符串为LocalDateTimeRange
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.PeriodDuration
Parses an ISO 8601 duration string 解析ISO 8601时长字符串
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.YearHalf
Parses a YearHalf from a string 从字符串解析YearHalf
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Parses a string to YearQuarter 解析字符串为YearQuarter
parse(CharSequence) - Static method in class cloud.opencode.base.date.extra.YearWeek
Parses a string to YearWeek 解析字符串为YearWeek
parse(CharSequence, DateTimeFormatter) - Static method in class cloud.opencode.base.date.extra.YearQuarter
Parses a string to YearQuarter using the specified formatter 使用指定格式化器解析字符串为YearQuarter
parse(CharSequence, DateTimeFormatter) - Static method in class cloud.opencode.base.date.extra.YearWeek
Parses a string to YearWeek using the specified formatter 使用指定格式化器解析字符串为YearWeek
parse(String) - Static method in class cloud.opencode.base.date.cron.CronExpression
Parses a cron expression 解析cron表达式
parse(String) - Static method in class cloud.opencode.base.date.extra.LocalTimeRange
Parses a LocalTimeRange from a string 从字符串解析LocalTimeRange
parse(String) - Static method in class cloud.opencode.base.date.OpenDate
Parses a string to LocalDateTime using smart format detection 使用智能格式检测将字符串解析为LocalDateTime
parse(String, String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalDateTime using the specified pattern 使用指定模式将字符串解析为LocalDateTime
parse(String, String) - Static method in class cloud.opencode.base.date.OpenDate
Parses a string to LocalDateTime using the specified pattern 使用指定模式将字符串解析为LocalDateTime
parseDate(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalDate using smart format detection 使用智能格式检测将字符串解析为LocalDate
parseDate(String) - Static method in class cloud.opencode.base.date.OpenDate
Parses a string to LocalDate using smart format detection 使用智能格式检测将字符串解析为LocalDate
parseDate(String, String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalDate using the specified pattern 使用指定模式将字符串解析为LocalDate
parseDateTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalDateTime using smart format detection 使用智能格式检测将字符串解析为LocalDateTime
parseDuration(String) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Parses a string into a Duration 将字符串解析为Duration
parseError(String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a parse error exception for smart parsing 创建智能解析的解析错误异常
parseError(String, String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a parse error exception 创建解析错误异常
parseError(String, String, Throwable) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a parse error exception with cause 创建带原因的解析错误异常
parsePeriod(String) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Parses a string into a Period 将字符串解析为Period
parseTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalTime using smart format detection 使用智能格式检测将字符串解析为LocalTime
parseTime(String) - Static method in class cloud.opencode.base.date.OpenDate
Parses a string to LocalTime using smart format detection 使用智能格式检测将字符串解析为LocalTime
parseTime(String, String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Parses a string to LocalTime using the specified pattern 使用指定模式将字符串解析为LocalTime
period(int, int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Period from years, months, and days 从年、月、日创建Period
periodBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the Period between two dates 获取两个日期之间的Period
periodDays(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Period of the specified days 创建指定天数的Period
periodDuration(Period, Duration) - Static method in class cloud.opencode.base.date.DateTimes
Creates a PeriodDuration from Period and Duration 从Period和Duration创建PeriodDuration
PeriodDuration - Class in cloud.opencode.base.date.extra
Period and Duration combination representing both date-based and time-based amounts 周期和时长的组合,表示基于日期和基于时间的数量
PeriodFormatter - Class in cloud.opencode.base.date.formatter
Formats and parses Period and Duration objects as human-readable strings 将Period和Duration对象格式化和解析为人类可读的字符串
plus(int) - Method in class cloud.opencode.base.date.extra.Days
 
plus(int) - Method in class cloud.opencode.base.date.extra.Months
 
plus(int) - Method in enum class cloud.opencode.base.date.extra.Quarter
Adds quarters to this quarter 在此季度基础上加季度数
plus(int) - Method in class cloud.opencode.base.date.extra.Weeks
 
plus(int) - Method in class cloud.opencode.base.date.extra.Years
 
plus(long) - Method in class cloud.opencode.base.date.extra.Hours
 
plus(long) - Method in class cloud.opencode.base.date.extra.Minutes
 
plus(long) - Method in class cloud.opencode.base.date.extra.Seconds
 
plus(long, ChronoUnit) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster that adds the specified number of units 返回添加指定数量单位的调整器
plus(long, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearHalf
 
plus(long, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
plus(long, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearWeek
 
plus(Days) - Method in class cloud.opencode.base.date.extra.Days
 
plus(Hours) - Method in class cloud.opencode.base.date.extra.Hours
 
plus(Minutes) - Method in class cloud.opencode.base.date.extra.Minutes
 
plus(Months) - Method in class cloud.opencode.base.date.extra.Months
 
plus(PeriodDuration) - Method in class cloud.opencode.base.date.extra.PeriodDuration
Adds another PeriodDuration to this 加上另一个PeriodDuration
plus(Seconds) - Method in class cloud.opencode.base.date.extra.Seconds
 
plus(Weeks) - Method in class cloud.opencode.base.date.extra.Weeks
 
plus(Years) - Method in class cloud.opencode.base.date.extra.Years
 
plusBusinessDays(int) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster for adding/subtracting business days 返回添加/减去工作日的调整器
plusDays(int) - Static method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Creates an adjuster that adds the specified number of business days 创建添加指定工作日数的调整器
plusDays(int) - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that adds the specified number of workdays 创建添加指定工作日数的调整器
plusDays(int, Predicate) - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that adds workdays with custom holiday predicate 创建添加工作日并使用自定义假日谓词的调整器
plusDays(int, Set) - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that adds workdays with custom holidays 创建添加工作日并考虑自定义假日的调整器
plusDays(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds days to a LocalDateTime 在LocalDateTime上加天
plusHalves(long) - Method in class cloud.opencode.base.date.extra.YearHalf
Adds halves to this year-half 向此年-半年添加半年
plusHours(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds hours to a LocalDateTime 在LocalDateTime上加小时
plusMinutes(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds minutes to a LocalDateTime 在LocalDateTime上加分钟
plusMonths(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds months to a LocalDateTime 在LocalDateTime上加月
plusQuarters(long) - Method in class cloud.opencode.base.date.extra.YearQuarter
Adds quarters to this YearQuarter 在此YearQuarter基础上加季度数
plusSeconds(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds seconds to a LocalDateTime 在LocalDateTime上加秒
plusWeeks(long) - Method in class cloud.opencode.base.date.extra.YearWeek
Adds weeks to this YearWeek 在此YearWeek基础上加周数
plusWeeks(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds weeks to a LocalDateTime 在LocalDateTime上加周
plusWorkdays(int) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns an adjuster that adds workdays.
plusWorkdays(LocalDate, int) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Adds workdays to a date 向日期添加工作日
plusYears(long) - Method in class cloud.opencode.base.date.extra.YearHalf
Adds years to this year-half 向此年-半年添加年
plusYears(long) - Method in class cloud.opencode.base.date.extra.YearQuarter
Adds years to this YearQuarter 在此YearQuarter基础上加年数
plusYears(long) - Method in class cloud.opencode.base.date.extra.YearWeek
Adds years to this YearWeek 在此YearWeek基础上加年数
plusYears(LocalDateTime, long) - Static method in class cloud.opencode.base.date.OpenDate
Adds years to a LocalDateTime 在LocalDateTime上加年
PM - Enum constant in enum class cloud.opencode.base.date.extra.AmPm
PM - Post Meridiem (after noon, 12:00-23:59) 下午(12:00-23:59)
prettyPrint() - Method in class cloud.opencode.base.date.StopWatch
Creates a pretty-printed summary of all tasks 创建所有任务的漂亮打印摘要
previous() - Method in enum class cloud.opencode.base.date.extra.Quarter
Gets the previous quarter 获取上一个季度
previous(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster for the previous occurrence of a day of week (strictly before) 返回上一个星期几的调整器(严格之前)
previous(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the previous day of week adjuster.
previousBusinessDay() - Static method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Creates an adjuster that finds the previous business day 创建查找上一个工作日的调整器
previousExecution() - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the previous execution time before now 获取当前之前的上一次执行时间
previousExecution(LocalDateTime) - Method in class cloud.opencode.base.date.cron.CronExpression
Gets the previous execution time before the specified time 获取指定时间之前的上一次执行时间
previousFrom(LocalDate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster
Finds the previous business day from a given date 从给定日期查找上一个工作日
previousOrSame(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns an adjuster for the previous or same occurrence of a day of week 返回上一个或相同星期几的调整器
previousOrSame(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the previous or same day of week adjuster.
previousWorkday() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the previous workday adjuster (skips weekends).
previousWorkday() - Static method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster
Creates an adjuster that finds the previous workday 创建查找上一个工作日的调整器
previousWorkday(LocalDate) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
Gets the previous workday before the specified date 获取指定日期之前的上一个工作日
previousWorkday(LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Gets the previous workday before the given date 获取给定日期之前的上一个工作日
PUBLIC - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Public/national holiday 公共/国家假日
PURE_DATE - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Compact date format: yyyyMMdd (e.g., 20240115) 紧凑日期格式:yyyyMMdd(例如:20240115)
PURE_DATETIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Compact datetime format: yyyyMMddHHmmss (e.g., 20240115143045) 紧凑日期时间格式:yyyyMMddHHmmss(例如:20240115143045)
PURE_DATETIME_MS - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Compact datetime with milliseconds: yyyyMMddHHmmssSSS 紧凑日期时间带毫秒:yyyyMMddHHmmssSSS
PURE_TIME - Static variable in class cloud.opencode.base.date.formatter.DateFormatter
Compact time format: HHmmss (e.g., 143045) 紧凑时间格式:HHmmss(例如:143045)

Q

Q1 - Enum constant in enum class cloud.opencode.base.date.extra.Quarter
First quarter: January, February, March 第一季度:一月、二月、三月
Q2 - Enum constant in enum class cloud.opencode.base.date.extra.Quarter
Second quarter: April, May, June 第二季度:四月、五月、六月
Q3 - Enum constant in enum class cloud.opencode.base.date.extra.Quarter
Third quarter: July, August, September 第三季度:七月、八月、九月
Q4 - Enum constant in enum class cloud.opencode.base.date.extra.Quarter
Fourth quarter: October, November, December 第四季度:十月、十一月、十二月
quarter(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Quarter 创建Quarter
Quarter - Enum Class in cloud.opencode.base.date.extra
Quarter Enum representing the four quarters of a year 季度枚举,表示一年中的四个季度
query() - Static method in enum class cloud.opencode.base.date.extra.AmPm
Gets a query for extracting the AmPm from a temporal 获取从时间对象提取AmPm的查询
query() - Static method in class cloud.opencode.base.date.extra.DayOfMonth
Gets a query for extracting DayOfMonth from a temporal 获取从时间对象提取DayOfMonth的查询
query() - Static method in class cloud.opencode.base.date.extra.DayOfYear
Gets a query for extracting DayOfYear from a temporal 获取从时间对象提取DayOfYear的查询
query() - Static method in enum class cloud.opencode.base.date.extra.Quarter
Gets a query for extracting the Quarter from a temporal 获取从时间对象提取季度的查询
query(TemporalQuery) - Method in class cloud.opencode.base.date.extra.YearHalf
 
queryFrom(TemporalAccessor) - Method in enum class cloud.opencode.base.date.extra.AmPm
 
queryFrom(TemporalAccessor) - Method in enum class cloud.opencode.base.date.extra.Quarter
 

R

range(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Creates a LocalDateRange from start to end 创建从开始到结束的LocalDateRange
range(TemporalField) - Method in enum class cloud.opencode.base.date.extra.AmPm
 
range(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
range(TemporalField) - Method in class cloud.opencode.base.date.extra.DayOfYear
 
range(TemporalField) - Method in enum class cloud.opencode.base.date.extra.Quarter
 
range(TemporalField) - Method in class cloud.opencode.base.date.extra.YearHalf
 
range(TemporalField) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
range(TemporalField) - Method in class cloud.opencode.base.date.extra.YearWeek
 
rangeError(String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a range error exception 创建范围错误异常
refresh() - Method in interface cloud.opencode.base.date.holiday.HolidayProvider
Refreshes the holiday data (if applicable) 刷新节假日数据(如果适用)
registerProvider(HolidayProvider) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Registers a holiday provider 注册节假日提供者
RelativeTimeFormatter - Class in cloud.opencode.base.date.formatter
Formats temporal objects as relative time strings (e.g., "3 hours ago", "in 2 days") 将时间对象格式化为相对时间字符串(如"3小时前"、"2天后")
RELIGIOUS - Enum constant in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Religious holiday 宗教假日
reset() - Method in class cloud.opencode.base.date.StopWatch
Resets the stopwatch 重置计时器
roundToNearest(LocalDateTime, int) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest N-minute interval.
roundToNearest(LocalDateTime, Duration) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest multiple of the given duration.
roundToNearestHalfHour(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest half hour (30-minute interval).
roundToNearestHour(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest hour.
roundToNearestMinute(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest minute.
roundToNearestQuarterHour(LocalDateTime) - Static method in class cloud.opencode.base.date.DateRounding
Rounds to the nearest quarter hour (15-minute interval).

S

seconds() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of seconds between start and end (signed) 获取开始和结束之间的秒数(带符号)
seconds(long) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Duration of the specified seconds 创建指定秒数的Duration
Seconds - Class in cloud.opencode.base.date.extra
Seconds unit class representing a number of seconds 秒数单位类,表示秒数
SEOUL - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
setDefaultProvider(HolidayProvider) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Sets the default holiday provider 设置默认节假日提供者
shift(Duration) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Shifts the range by the specified duration 按指定持续时间移动范围
shortSummary() - Method in class cloud.opencode.base.date.StopWatch
Creates a short summary string 创建简短的摘要字符串
SINGAPORE - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
SINGAPORE - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Singapore Time 新加坡时间
span(LocalDateRange) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Gets the span (union) of this range with the specified range 获取此范围与指定范围的跨度(并集)
span(DateRange) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
span(DateTimeRange) - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
span(TimeRange) - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
specialWorkdays(Predicate) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the special workday predicate 设置特殊工作日谓词
specialWorkdays(Set) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the special workdays from a set 从集合设置特殊工作日
split(String) - Method in class cloud.opencode.base.date.StopWatch
Splits the current lap and starts a new one 分割当前圈并开始新的一圈
splitByMonth() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Splits this range by month 按月分割此范围
splitByMonth() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
splitByWeek() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Splits this range by week (Monday to Sunday) 按周分割此范围(周一到周日)
splitByWeek() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
start(String) - Method in class cloud.opencode.base.date.StopWatch
Starts timing a new task 开始计时新任务
startOfDay() - Static method in class cloud.opencode.base.date.adjuster.TemporalAdjusters
Returns the start of day adjuster (00:00:00.000000000).
startOfDay(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the start of day for a date-time 获取日期时间的当天开始
startOfFirstHalf() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the first half of the year 返回上半年开始
startOfMonth() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the month adjuster (alias for firstDayOfMonth) 返回月初调整器(firstDayOfMonth的别名)
startOfMonth(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the first day of the month 获取月份的第一天
startOfMonth(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the start of month for a date-time 获取日期时间的当月开始
startOfQuarter() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the current quarter adjuster 返回当前季度开始调整器
startOfQuarter(int) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of a specific quarter adjuster 返回特定季度开始调整器
startOfQuarter(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the first day of the quarter 获取季度的第一天
startOfSecondHalf() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the second half of the year 返回下半年开始
startOfWeek() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the week adjuster (Monday) 返回周初调整器(周一)
startOfWeek(DayOfWeek) - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the week adjuster for a specific first day 返回特定首日的周初调整器
startOfWeek(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the first day of the week (Monday) 获取周的第一天(周一)
startOfWeek(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the start of week for a date-time (Monday) 获取日期时间的当周开始(周一)
startOfYear() - Static method in class cloud.opencode.base.date.adjuster.DateAdjusters
Returns the start of the year adjuster 返回年初调整器
startOfYear(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the first day of the year 获取年份的第一天
startOfYear(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Gets the start of year for a date-time 获取日期时间的当年开始
stop() - Method in class cloud.opencode.base.date.StopWatch
Stops timing the current task 停止计时当前任务
StopWatch - Class in cloud.opencode.base.date
High-precision StopWatch for performance timing 高精度计时器,用于性能计时
StopWatch() - Constructor for class cloud.opencode.base.date.StopWatch
Creates a StopWatch with no name 创建无名称的StopWatch
StopWatch(String) - Constructor for class cloud.opencode.base.date.StopWatch
Creates a StopWatch with the specified name 创建具有指定名称的StopWatch
StopWatch.TaskInfo - Record Class in cloud.opencode.base.date
Information about a timed task 计时任务的信息
stream() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Returns a stream of all dates in this range 返回此范围内所有日期的流
stream() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
stream(Period) - Method in class cloud.opencode.base.date.extra.LocalDateRange
Returns a stream of dates in this range with the specified step 返回此范围内按指定步长的日期流
stream(Period) - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Days
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Hours
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Minutes
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Months
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Seconds
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Weeks
 
subtractFrom(Temporal) - Method in class cloud.opencode.base.date.extra.Years
 
SYDNEY - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
SYDNEY - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
Sydney Time 悉尼时间

T

TaskInfo(String, long) - Constructor for record class cloud.opencode.base.date.StopWatch.TaskInfo
Creates an instance of a TaskInfo record class.
TemporalAdjusters - Class in cloud.opencode.base.date.adjuster
Temporal Adjusters - Extended temporal adjusters for business use cases 时间调整器 - 用于业务场景的扩展时间调整器
TemporalUtil - Class in cloud.opencode.base.date
Utility class for temporal operations 时间操作工具类
time(int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalTime 创建LocalTime
time(int, int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a LocalTime with seconds 创建带秒的LocalTime
time(Runnable) - Static method in class cloud.opencode.base.date.StopWatch
Times the execution of a Runnable 计时Runnable的执行
time(String, Runnable) - Static method in class cloud.opencode.base.date.StopWatch
Times the execution of a Runnable with a task name 使用任务名称计时Runnable的执行
timeMillis() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Gets the elapsed time in milliseconds 获取经过时间(毫秒)
timeNanos() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Returns the value of the timeNanos record component.
TimeRange - Class in cloud.opencode.base.date.range
Deprecated.
Use LocalTimeRange instead
timeSeconds() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Gets the elapsed time in seconds 获取经过时间(秒)
TimezoneConverter - Class in cloud.opencode.base.date.timezone
Timezone converter for date/time conversions between timezones 时区转换器,用于不同时区之间的日期时间转换
timezoneError(String) - Static method in exception class cloud.opencode.base.date.exception.OpenDateException
Creates a timezone error exception 创建时区错误异常
TimezoneUtil - Class in cloud.opencode.base.date.timezone
Utility class for timezone operations 时区操作工具类
to(ZoneId) - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Sets the target timezone 设置目标时区
toChina() - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Sets the target timezone to China 设置目标时区为中国
toDate(LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Converts a LocalDate to java.util.Date 将LocalDate转换为java.util.Date
toDate(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Converts a LocalDateTime to java.util.Date 将LocalDateTime转换为java.util.Date
toDateDiff() - Method in class cloud.opencode.base.date.between.DateBetween
Gets a detailed breakdown of the difference 获取差异的详细分解
toDateRange() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Converts to DateRange (date portion only) 转换为DateRange(仅日期部分)
today() - Static method in class cloud.opencode.base.date.DateTimes
Gets today's date 获取今天的日期
today() - Static method in class cloud.opencode.base.date.OpenDate
Gets the current date 获取当前日期
today(ZoneId) - Static method in class cloud.opencode.base.date.OpenDate
Gets the current date for the specified zone 获取指定时区的当前日期
toDays() - Method in class cloud.opencode.base.date.extra.Hours
 
toDays() - Method in class cloud.opencode.base.date.extra.Weeks
 
toDetail() - Method in class cloud.opencode.base.date.between.AgeBetween
Gets a detailed age breakdown 获取详细的年龄分解
toDuration() - Method in class cloud.opencode.base.date.between.DateBetween
Converts to a Duration (for LocalDateTime only) 转换为Duration(仅用于LocalDateTime)
toDuration() - Method in class cloud.opencode.base.date.extra.Days
 
toDuration() - Method in class cloud.opencode.base.date.extra.Hours
 
toDuration() - Method in class cloud.opencode.base.date.extra.Interval
Gets the duration of this interval 获取此区间的时长
toDuration() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the duration of this range 获取此范围的时长
toDuration() - Method in class cloud.opencode.base.date.extra.Minutes
 
toDuration() - Method in class cloud.opencode.base.date.extra.Seconds
 
toDuration() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
toDuration() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
toEpochMilli(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Converts a LocalDateTime to epoch milliseconds 将LocalDateTime转换为毫秒时间戳
toEpochMilli(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts LocalDateTime to epoch milliseconds 将LocalDateTime转换为纪元毫秒
toEpochSecond(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Converts a LocalDateTime to epoch seconds 将LocalDateTime转换为秒时间戳
toEpochSecond(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts LocalDateTime to epoch seconds 将LocalDateTime转换为纪元秒
toHours() - Method in class cloud.opencode.base.date.extra.Days
 
toHours() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the length in hours 获取小时数
toHours() - Method in class cloud.opencode.base.date.extra.Minutes
 
toHours() - Method in class cloud.opencode.base.date.extra.Seconds
 
toInstant(Object) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts any supported temporal/date object to Instant.
toInstant(LocalDateTime) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts a LocalDateTime to Instant using the system default zone 使用系统默认时区将LocalDateTime转换为Instant
toInstant(LocalDateTime, ZoneId) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts a LocalDateTime to Instant using the specified zone 使用指定时区将LocalDateTime转换为Instant
toInstant(ZonedDateTime) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts a ZonedDateTime to an Instant 将ZonedDateTime转换为Instant
toInterval(ZoneId) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Converts this range to an Interval using the specified zone 使用指定时区将此范围转换为Interval
TOKYO - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
toList() - Method in class cloud.opencode.base.date.extra.LocalDateRange
Converts this range to a list of dates 将此范围转换为日期列表
toList() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
toLocal(ZonedDateTime) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts a ZonedDateTime to LocalDateTime in the same zone 将ZonedDateTime转换为同一时区的LocalDateTime
toLocalDateRange() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Converts this range to a LocalDateRange 将此范围转换为LocalDateRange
toLocalDateRange() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
Converts to LocalDateRange 转换为LocalDateRange
toLocalDateRange(ZoneId) - Method in class cloud.opencode.base.date.extra.Interval
Converts this interval to a LocalDateRange using the specified zone 使用指定时区将此区间转换为LocalDateRange
toLocalDateTime(Instant) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts an Instant to LocalDateTime using the system default zone 使用系统默认时区将Instant转换为LocalDateTime
toLocalDateTime(Instant, ZoneId) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts an Instant to LocalDateTime using the specified zone 使用指定时区将Instant转换为LocalDateTime
toLocalDateTime(LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Converts a LocalDate to LocalDateTime at start of day 将LocalDate转换为当天开始的LocalDateTime
toLocalDateTimeRange() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
Converts to LocalDateTimeRange 转换为LocalDateTimeRange
toLocalDateTimeRange(ZoneId) - Method in class cloud.opencode.base.date.extra.Interval
Converts this interval to a LocalDateTimeRange using the specified zone 使用指定时区将此区间转换为LocalDateTimeRange
toLocalTimeRange() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
Converts to LocalTimeRange 转换为LocalTimeRange
toMinutes() - Method in class cloud.opencode.base.date.extra.Hours
 
toMinutes() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the length in minutes 获取分钟数
toMinutes() - Method in class cloud.opencode.base.date.extra.Seconds
 
toMonths() - Method in class cloud.opencode.base.date.extra.Years
 
tomorrow() - Static method in class cloud.opencode.base.date.DateTimes
Gets tomorrow's date 获取明天的日期
toPeriod() - Method in class cloud.opencode.base.date.between.DateBetween
Converts to a Period (for LocalDate only) 转换为Period(仅用于LocalDate)
toPeriod() - Method in class cloud.opencode.base.date.between.DateDiff
Converts to Period (date part only) 转换为Period(仅日期部分)
toPeriod() - Method in class cloud.opencode.base.date.extra.Days
 
toPeriod() - Method in class cloud.opencode.base.date.extra.Months
 
toPeriod() - Method in class cloud.opencode.base.date.extra.Weeks
 
toPeriod() - Method in class cloud.opencode.base.date.extra.Years
 
toSeconds() - Method in class cloud.opencode.base.date.extra.Hours
 
toSeconds() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the length in seconds 获取秒数
toSeconds() - Method in class cloud.opencode.base.date.extra.Minutes
 
toString() - Method in class cloud.opencode.base.date.between.AgeBetween
 
toString() - Method in class cloud.opencode.base.date.between.AgeDetail
 
toString() - Method in class cloud.opencode.base.date.between.DateBetween
 
toString() - Method in class cloud.opencode.base.date.between.DateDiff
 
toString() - Method in class cloud.opencode.base.date.cron.CronExpression
 
toString() - Method in class cloud.opencode.base.date.extra.DayOfMonth
 
toString() - Method in class cloud.opencode.base.date.extra.DayOfYear
 
toString() - Method in class cloud.opencode.base.date.extra.Days
 
toString() - Method in class cloud.opencode.base.date.extra.Hours
 
toString() - Method in class cloud.opencode.base.date.extra.Interval
 
toString() - Method in class cloud.opencode.base.date.extra.LocalDateRange
 
toString() - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
 
toString() - Method in class cloud.opencode.base.date.extra.LocalTimeRange
 
toString() - Method in class cloud.opencode.base.date.extra.Minutes
 
toString() - Method in class cloud.opencode.base.date.extra.Months
 
toString() - Method in class cloud.opencode.base.date.extra.PeriodDuration
 
toString() - Method in class cloud.opencode.base.date.extra.Seconds
 
toString() - Method in class cloud.opencode.base.date.extra.Weeks
 
toString() - Method in class cloud.opencode.base.date.extra.YearHalf
 
toString() - Method in class cloud.opencode.base.date.extra.YearQuarter
 
toString() - Method in class cloud.opencode.base.date.extra.Years
 
toString() - Method in class cloud.opencode.base.date.extra.YearWeek
 
toString() - Method in class cloud.opencode.base.date.holiday.Holiday
 
toString() - Method in class cloud.opencode.base.date.holiday.HolidayCalendar
 
toString() - Method in class cloud.opencode.base.date.range.DateRange
Deprecated.
 
toString() - Method in class cloud.opencode.base.date.range.DateTimeRange
Deprecated.
 
toString() - Method in class cloud.opencode.base.date.range.TimeRange
Deprecated.
 
toString() - Method in record class cloud.opencode.base.date.StopWatch.TaskInfo
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.date.StopWatch
 
toSummary() - Method in class cloud.opencode.base.date.between.AgeDetail
Creates a detailed summary 创建详细摘要
toSystem() - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Sets the target timezone to system default 设置目标时区为系统默认
toTotalDays() - Method in class cloud.opencode.base.date.between.DateDiff
Converts to total days (approximate for months/years) 转换为总天数(月/年为近似值)
toUTC() - Method in class cloud.opencode.base.date.timezone.TimezoneConverter
Sets the target timezone to UTC 设置目标时区为UTC
toUTC(LocalDateTime, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneConverter
Converts to UTC from the specified timezone 从指定时区转换为UTC
toWeeks() - Method in class cloud.opencode.base.date.extra.Days
 
toYears() - Method in class cloud.opencode.base.date.extra.Months
 
toZoned(Instant, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts an Instant to ZonedDateTime in the specified timezone 将Instant转换为指定时区的ZonedDateTime
toZoned(LocalDateTime, ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Converts a LocalDateTime to a ZonedDateTime in the specified timezone 将LocalDateTime转换为指定时区的ZonedDateTime
truncate(T, TemporalUnit) - Static method in class cloud.opencode.base.date.OpenDate
Truncates a temporal to the specified unit 将时间对象截断到指定单位
truncateToDay(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Truncates a LocalDateTime to the start of day 将LocalDateTime截断到当天开始
truncateToHour(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Truncates a LocalDateTime to the start of hour 将LocalDateTime截断到小时开始
truncateToMinute(LocalDateTime) - Static method in class cloud.opencode.base.date.OpenDate
Truncates a LocalDateTime to the start of minute 将LocalDateTime截断到分钟开始
tryParseDate(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Tries to parse a string to LocalDate, returns null on failure 尝试将字符串解析为LocalDate,失败返回null
tryParseDateTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Tries to parse a string to LocalDateTime, returns null on failure 尝试将字符串解析为LocalDateTime,失败返回null
tryParseDuration(String) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Tries to parse a string into a Duration, returning null if parsing fails 尝试将字符串解析为Duration,如果解析失败则返回null
tryParsePeriod(String) - Static method in class cloud.opencode.base.date.formatter.PeriodFormatter
Tries to parse a string into a Period, returning null if parsing fails 尝试将字符串解析为Period,如果解析失败则返回null
tryParseTime(String) - Static method in class cloud.opencode.base.date.formatter.DateParser
Tries to parse a string to LocalTime, returns null on failure 尝试将字符串解析为LocalTime,失败返回null
type(Holiday.HolidayType) - Method in class cloud.opencode.base.date.holiday.Holiday.Builder
Sets the type 设置类型

U

union(Interval) - Method in class cloud.opencode.base.date.extra.Interval
Gets the union of this interval with the specified interval 获取此区间与指定区间的并集
union(LocalDateTimeRange) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Gets the union of this range with the specified range 获取此范围与指定范围的并集
until(Temporal, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearHalf
 
until(Temporal, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
until(Temporal, TemporalUnit) - Method in class cloud.opencode.base.date.extra.YearWeek
 
usesDaylightSavingTime(ZoneId) - Static method in class cloud.opencode.base.date.timezone.TimezoneUtil
Checks if a timezone uses DST 检查时区是否使用夏令时
UTC - Static variable in class cloud.opencode.base.date.timezone.TimezoneConverter
 
UTC - Static variable in class cloud.opencode.base.date.timezone.TimezoneUtil
UTC timezone UTC时区

V

validate(String) - Static method in class cloud.opencode.base.date.cron.CronUtil
Validates a Cron expression and throws if invalid 验证Cron表达式,如果无效则抛出异常
valueOf(String) - Static method in enum class cloud.opencode.base.date.extra.AmPm
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.date.extra.Quarter
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.date.extra.AmPm
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.date.extra.Quarter
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.date.extra.YearHalf.Half
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.date.holiday.Holiday.HolidayType
Returns an array containing the constants of this enum class, in the order they are declared.

W

weekdays(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of weekdays (Monday through Friday) from start (inclusive) to end (exclusive).
WEEKDAYS_9AM - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every weekday (Monday to Friday) at 9 AM
weekdaysAt(int, int) - Static method in class cloud.opencode.base.date.cron.CronUtil
Creates a Cron expression for running at a specific time on weekdays 创建工作日在特定时间运行的Cron表达式
weekendDays(Set) - Method in class cloud.opencode.base.date.adjuster.BusinessDayAdjuster.Builder
Sets the weekend days 设置周末天数
weekendDays(Set) - Method in class cloud.opencode.base.date.adjuster.WorkdayAdjuster.Builder
Sets the weekend days 设置周末天数
weekendDays(Set) - Method in class cloud.opencode.base.date.holiday.HolidayCalendar.Builder
Sets the weekend days 设置周末天数
weekends(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of weekend days (Saturday and Sunday) from start (inclusive) to end (exclusive).
WEEKLY - Static variable in class cloud.opencode.base.date.cron.CronExpression
Every Monday at midnight 每周一午夜
WEEKLY_MONDAY - Static variable in class cloud.opencode.base.date.cron.CronUtil
Every Monday at midnight
weeks() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of complete weeks between start and end (signed) 获取开始和结束之间的完整周数(带符号)
weeks(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Period of the specified weeks 创建指定周数的Period
weeks(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.DateStreams
Creates a stream of Monday-aligned week start dates from start (inclusive) to end (exclusive).
Weeks - Class in cloud.opencode.base.date.extra
Weeks unit class representing a number of weeks 周数单位类,表示周数
with(TemporalField, long) - Method in class cloud.opencode.base.date.extra.YearHalf
 
with(TemporalField, long) - Method in class cloud.opencode.base.date.extra.YearQuarter
 
with(TemporalField, long) - Method in class cloud.opencode.base.date.extra.YearWeek
 
withEnd(Instant) - Method in class cloud.opencode.base.date.extra.Interval
Creates a new interval with a different end 创建具有不同结束的新区间
withEnd(LocalDateTime) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates a new range with a different end 创建具有不同结束的新范围
withEnd(LocalTime) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Returns a new range with the end adjusted 返回调整结束时间后的新范围
withStart(Instant) - Method in class cloud.opencode.base.date.extra.Interval
Creates a new interval with a different start 创建具有不同起始的新区间
withStart(LocalDateTime) - Method in class cloud.opencode.base.date.extra.LocalDateTimeRange
Creates a new range with a different start 创建具有不同起始的新范围
withStart(LocalTime) - Method in class cloud.opencode.base.date.extra.LocalTimeRange
Returns a new range with the start adjusted 返回调整开始时间后的新范围
WorkdayAdjuster - Class in cloud.opencode.base.date.adjuster
Temporal adjuster for workday calculations 工作日计算的时间调整器
WorkdayAdjuster.Builder - Class in cloud.opencode.base.date.adjuster
Builder for WorkdayAdjuster WorkdayAdjuster构建器
workdaysBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.holiday.HolidayUtil
Calculates the number of workdays between two dates 计算两个日期之间的工作日数

Y

year(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Year 创建Year
YearHalf - Class in cloud.opencode.base.date.extra
A year-half representation (e.g., 2024-H1, 2024-H2) 年-半年表示(如2024-H1、2024-H2)
YearHalf.Half - Enum Class in cloud.opencode.base.date.extra
Enum representing the two halves of a year 表示一年两半的枚举
YEARLY - Static variable in class cloud.opencode.base.date.cron.CronExpression
First day of every year at midnight 每年第一天午夜
yearMonth(int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a YearMonth 创建YearMonth
yearQuarter(int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a YearQuarter 创建YearQuarter
yearQuarter(int, Quarter) - Static method in class cloud.opencode.base.date.DateTimes
Creates a YearQuarter with Quarter enum 使用Quarter枚举创建YearQuarter
YearQuarter - Class in cloud.opencode.base.date.extra
Year-Quarter combination representing a specific quarter in a specific year 年-季度组合,表示特定年份的特定季度
years() - Method in class cloud.opencode.base.date.between.DateBetween
Gets the number of complete years between start and end (signed) 获取开始和结束之间的完整年数(带符号)
years(int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a Period of the specified years 创建指定年数的Period
Years - Class in cloud.opencode.base.date.extra
Years unit class representing a number of years 年数单位类,表示年数
yearsBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.OpenDate
Gets the number of years between two dates 获取两个日期之间的年数
yearsBetween(LocalDate, LocalDate) - Static method in class cloud.opencode.base.date.TemporalUtil
Calculates years between two dates 计算两个日期之间的年数
yearWeek(int, int) - Static method in class cloud.opencode.base.date.DateTimes
Creates a YearWeek 创建YearWeek
YearWeek - Class in cloud.opencode.base.date.extra
Year-Week combination representing a specific ISO week in a specific year 年-周组合,表示特定年份的特定ISO周
yesterday() - Static method in class cloud.opencode.base.date.DateTimes
Gets yesterday's date 获取昨天的日期

Z

ZERO - Static variable in class cloud.opencode.base.date.extra.Days
 
ZERO - Static variable in class cloud.opencode.base.date.extra.Hours
 
ZERO - Static variable in class cloud.opencode.base.date.extra.Minutes
 
ZERO - Static variable in class cloud.opencode.base.date.extra.Months
 
ZERO - Static variable in class cloud.opencode.base.date.extra.PeriodDuration
Zero constant
ZERO - Static variable in class cloud.opencode.base.date.extra.Seconds
 
ZERO - Static variable in class cloud.opencode.base.date.extra.Weeks
 
ZERO - Static variable in class cloud.opencode.base.date.extra.Years
 
A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form