#1372: TimePeriod.kt
projectforge-business/src/main/kotlin/org/projectforge/framework/time/TimePeriod.kt Data Class/Service, projectforge-business/src/main/kotlin/org/projectforge/framework/time/TimePeriod.kt 234 lines · 129 code · 82 comments · 23 blank
Represents a time period with fromDate/toDate (java.util.Date) and optional marker. Provides duration in millis, hours (BigDecimal with configurable rounding), and field decomposition (days, hours, minutes) based on configurable hours-of-day. Supports creation from LocalDate and includes human-readable formatted string output.
Git History
868d6abb7 2025 -> 2026
ee53d43df AI savings: calculation of percent modified, TimesheetDO @Enumerated in database for unit. TimePeriod.getDurationFields rounds now seconds and minutes (half up).
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
d2157e204 New calendar improved (timesheets with more info).
b32a865ae DateFormats: time of day: leading space removed. TimePeriod.formattedString, UIAlert supports now Markdown-tables.
5f7ef41b8 Copyright 2021 -> 2022
f759829ec MonthlyReport: average working hours added, kost1 fixed.
ceb63e8a1 Source code header: (C) 2001-2021.
0e8ed158b TimesheetStats supports now rounding modes. Migrated to Kotlin.
88c6891f2 RoundUtils added.
4380cf352 TimePeriod.getDurationHours with several rounding modes.
ce5d0895b ScriptExecutePage fixed.
f65c71851 Review, compile errors fixed and first tests.