#1362: DateFormats.kt
projectforge-business/src/main/kotlin/org/projectforge/framework/time/DateFormats.kt Type: Kotlin Data Format · Purpose: Data format utility for parsing, formatting, and converting date/time/number values. · Source: projectforge-business/src/main/kotlin/org/projectforge/framework/time/DateFormats.kt 303 lines · 195 code · 92 comments · 16 blank
Data format utility for parsing, formatting, and converting date/time/number values.
Class: DateFormats
Annotations
@JvmOverloads, @JvmStatic
Properties
| Name | Mutable |
monthPos | val |
dayPos | val |
dateParseFormats | val |
sa | val |
formatString | val |
defaultDateFormat | var |
defaultTimeNotation | var |
locale | val |
user | val |
defaultExcelDateFormat | var |
pattern | val |
Functions
isFormatMonthFirst()
getDateSeparatorChar()
isIsoFormat()
getDateParseFormats()
getFormatString()
getDateTimeFormatter()
ensureAndGetDefaultTimeNotation()
getExcelFormatString()
getExcelFormatString()
getFormatString()
Architecture Analysis
Resides in projectforge-business, the core module containing domain logic, services, and persistence.
Git History
| Commit | What changed |
|---|
868d6abb75 | 2025 -> 2026 |
ee32b3e3a5 | Code deprecations. |
63081666f6 | Source file headers: 2024-> 2025. |
67805f2fc1 | ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code). |
b6092df092 | Copyright 2023 -> 2024 |
ab45d51fa4 | Copyright 2001-2022 -> 2001-2023. |
38bec971af | ThreadLocal -> Kotlin |
24236f214a | DateFormats: NPE fix for tests. |
556b74ecd6 | DateFormats -> Kotlin: supports now user different from ThreadLocalUser (for e-mails). Date formats in vacation mails in recipient's format. |