-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#998: QuarterData with dependency to quarter_lib
- Loading branch information
1 parent
27e8799
commit 0bd6eb2
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package ch.puzzle.okr.util; | ||
|
||
import ch.puzzle.quarter.generate.h2.QuarterFunction; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class QuarterData { | ||
|
||
private static final Logger logger = LoggerFactory.getLogger(QuarterData.class); | ||
|
||
public static void initQuarterData() { | ||
QuarterFunction.initQuarterData(); | ||
} | ||
|
||
public static String currentQuarterLabel() { | ||
String label = QuarterFunction.currentQuarterLabel(); | ||
logger.warn("currentQuarterLabel : " + label); | ||
return label; | ||
} | ||
|
||
public static String currentQuarterStartDate() { | ||
String start = QuarterFunction.currentQuarterStartDate(); | ||
logger.warn("currentQuarterStartDate: " + start); | ||
return start; | ||
} | ||
|
||
public static String currentQuarterEndDate() { | ||
String end = QuarterFunction.currentQuarterEndDate(); | ||
logger.warn("currentQuarterEndDate : " + end); | ||
return end; | ||
} | ||
|
||
public static String nextQuarterLabel() { | ||
String label = QuarterFunction.nextQuarterLabel(); | ||
logger.warn("nextQuarterLabel : " + label); | ||
return label; | ||
} | ||
|
||
public static String nextQuarterStartDate() { | ||
String start = QuarterFunction.nextQuarterStartDate(); | ||
logger.warn("nextQuarterStartDate : " + start); | ||
return start; | ||
} | ||
|
||
public static String nextQuarterEndDate() { | ||
String end = QuarterFunction.nextQuarterEndDate(); | ||
logger.warn("nextQuarterEndDate : " + end); | ||
return end; | ||
} | ||
} |