#1368: PFDateTime.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDateTime.kt Service, projectforge-business/src/main/kotlin/org/projectforge/framework/time/PFDateTime.kt 844 lines · 469 code · 256 comments · 119 blank
Immutable date-time holder wrapping ZonedDateTime. Core date/time class providing year, month, day, hour, minute, second, nano accessors; arithmetic (plus/minus days, weeks, months, years, hours); formatting (user locale, ISO, JS, HTTP-date, filename-safe); precision rounding; and conversion to java.util.Date, java.sql.Date/Timestamp. Companion object provides extensive factory methods (from/orNull/orNow) for Long, Instant, ZonedDateTime, LocalDateTime, LocalDate, Date, java.sql.Date, and Temporal.

Git History

868d6abb7 2025 -> 2026
b131193e7 Member variables refactored by using by lazy
63081666f Source file headers: 2024-> 2025.
dc2132fb5 Revert source change in previous commit
5f9bbfbd3 Fix typos in projectforge-business directory
6c1daac93 WIP: Carddav
40e721b9c VCardUtils
c193e8288 Ical4j: migration stuff... (all tests OK)
61966790f Ical4j: migration stuff...
9bffc8daf Migration stuff in progress...
7bc8f49c9 Migration stuff in progress... (all tests of all packages: OK).
3121b7ad6 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
38bec971a ThreadLocal -> Kotlin