#1371: PFDayUtils.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDayUtils.kt Utils, projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDayUtils.kt 326 lines · 220 code · 73 comments · 33 blank
Utility object for LocalDate/IPFDate operations: begin/end of year, month, week calculations; working day calculations using Holidays (getNumberOfWorkingDays, addWorkingDays, getNextWorkingDay); day-of-week mapping (ISO and compatibility); month validation; date parsing (ISO and user locale formats); and date range checking.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
5f9bbfbd3 Fix typos in projectforge-business directory
6a9ba0372 Minor improvments in PFDateTimeUtils (regex as field), Companion in PFDayUtils and PFDateTimeUtils replaced by object class.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
38bec971a ThreadLocal -> Kotlin
5f7ef41b8 Copyright 2021 -> 2022
db3b02da7 UserException moved from business to common package
ceb63e8a1 Source code header: (C) 2001-2021.
62cf96b16 Code warnings.
0e4d3b8d2 PFDayUtils.parseDate(str: String?) support now date strings including time of day.
461831f76 Wicket: LocalDate converter.
ee8dbaa4c Gantt PFDateTime -> PFDay and PFDayUtils.convertToUtilDate.
b209e00ba PFDay.from -> from, fromOrNow, fromOrNull