EN · DE · RU · FR · ES

#723: DayHolder.java

projectforge-business/src/main/java/org/projectforge/framework/time/DayHolder.java Type: Java Class · Package: org.projectforge.framework.time · Source: projectforge-business/src/main/java/org/projectforge/framework/time/DayHolder.java 326 lines · 192 code · 79 comments · 55 blank
Java Class implementing DayHolder.

Annotations

@Override, @Override

Fields

TypeField
longserialVersionUID
PFDaydate
Mapobjects
StringholidayInfo
booleanmarker

Methods

ReturnMethodParameters
KaiReinhardk.reinhard@micromata.de
daynamese. g. needed for I18n
StringgetDayKeyfinal DayOfWeek dayOfWeek
BigDecimalgetNumberOfWorkingDaysfinal Date from, final Date to
newDayHolderfrom
newDayHolderto
returngetNumberOfWorkingDaysfromDay, toDay
BigDecimalgetNumberOfWorkingDaysfinal DayHolder from, final DayHolder to
currentdaywith time zone UTC!
publicDayHolder
publicDayHolderfinal Date date
publicDayHolderfinal Date date, final TimeZone timeZone
publicDayHolderfinal DayHolder dateHolder
intgetYear
MonthgetMonth

Architecture Analysis

Resides in projectforge-business, the core module containing domain logic, services, and persistence.

Git History

CommitWhat changed
868d6abb752025 -> 2026
63081666f6Source file headers: 2024-> 2025.
b6092df092Copyright 2023 -> 2024
ab45d51fa4Copyright 2001-2022 -> 2001-2023.
5f7ef41b8cCopyright 2021 -> 2022
ceb63e8a1bSource code header: (C) 2001-2021.
35de8a909fMerge branch 'develop' into TimeClassReplacements
b209e00baePFDay.from -> from, fromOrNow, fromOrNull, PFDateTime.from -> from, fromOrNow, fromOrNull
a6a7aece4dOptimize Imports
bdabb065c1Merge branch 'develop' into TimeClassReplacements
6874f66b44FirstDayOfWeek...
7c1c487822Replacing more instance of java.sql.Date with java.time.LocalDate Replacing instances of java sql.Timestamp with java.util.Date
194ae2e64cHolidays -> Kotlin, PFDayUtilsTest.getNextWorkingDay implemented, ...
760a00df19NPE-fixes (platform clashes between Java and Kotlin) in DayHolder and TimesheetDisciplineChartBuilder.
7c79f1922cCopyright of source header -> 2020.
a1c287b49bWeek of year is now globally the same (independant from user's locale, dependent on configured default locale in projectforge.properties. DateHelper.ensurePrecision uses now PFDateTime.ensurePrecision.
4b53b65623PFDate -> PFDay, IPFDate introduced..
8c31eba2a3Heavy WIP: migration of Calendar, DateHolder, DayHolder etc.
24019a0f57Eliminate DateHolder occurences
4cd7c8e693Replace DateHolder and DayHolder methods with PFDateTime
73a9755df7More code cleanup: - Collapsed catch blocks that did the exact same things - Replaced ArrayList with ArrayList<> - Replaced StringBuffer with StringBuilder - Removed a few usages of deprecated classes (mainly HSSFColors in Excel) - Replace Collections.sort with List.sort
32f634b88fOptimize imports
97991a2c4dRevert "Simplify boolean return statements (business)"
40480b54ddSimplify boolean return statements (business)
000ca723d8Remove pointless boolean expressions (business)
dd5ca38acdCopyRight of all java file-header updated or created.
f979e8a429MGC-UPDATE: Update auf Version 3.0.0-SNAPSHOT
348847780aPROJECTFORGE-2011 Fix Christmas/Silvester half day
0e30bdbc84PROJECTFORGE-2011 Create test, fix one day problem
9ebb885224Initial commit