Module cloud.opencode.base.date


module cloud.opencode.base.date
OpenCode Base Date Module OpenCode 基础日期模块

Provides comprehensive date and time utilities based on JDK 25 java.time API, including cron expressions, timezone handling, holiday calendars, date predicates, date streams, date rounding, closest date finder, and business day calculations.

提供基于 JDK 25 java.time API 的全面日期时间工具,包括 Cron 表达式、时区处理、 节假日日历、日期谓词、日期流、日期舍入、最近日期查找和工作日计算。

Key Features | 主要功能:

  • Date Predicates - 日期谓词(isFuture/isPast/isSameDay/isWeekend 等)
  • Date Streams - 日期流(天/周/月/小时/周末/工作日惰性流)
  • Closest Date Finder - 最近日期查找
  • Date Rounding - 日期舍入(round/ceil/floor)
  • Business Day Calculations - 工作日计算
  • Cron Expression Parsing - Cron 表达式解析
  • Date Range & Interval - 日期范围与区间
  • Holiday Calendar - 节假日日历
  • Timezone Utilities - 时区工具
  • Date Adjusters - 日期调整器
  • Flexible Formatters - 灵活格式化
Since:
JDK 25, opencode-base-date V1.0.0
Author:
Leon Soo
See Also: