#1370: PFDay.kt
projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDay.kt Service, projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDay.kt 426 lines · 246 code · 106 comments · 74 blank
Immutable date holder wrapping LocalDate. Date-only counterpart to PFDateTime, implementing IPFDate<PFDay>. Provides year, month, day, week accessors; arithmetic (plus/minus days, weeks, months, years); formatting (user locale, ISO); and conversion to java.util.Date and java.sql.Date. Companion object provides factory methods (from/orNull/orNow) for LocalDate, Date, java.sql.Date, and PFDateTime. Configurable week fields via projectforge.properties.
Git History
868d6abb7 2025 -> 2026
c80d7fb5f PFDay.weekFields modified for testing.
b131193e7 Member variables refactored by using by lazy
63081666f Source file headers: 2024-> 2025.
5f9bbfbd3 Fix typos in projectforge-business directory
2fbd0908f PFDay: hashCode, equals.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
38bec971a ThreadLocal -> Kotlin
4827784b5 WIP: DataTransfer mail notification. IPFDate.isHoliday and isHolidayOrWeekend implemented.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
01bef429c PFDay/PFDateTime: weekOfYear is now configurable in projectforge.properties
66c1835a3 IPFDate.withDayOfWeek(DayOfWeek) added.
6a8d4e68d Liquidity: wip: support of base date in past.