forked from HongZhaoHua/jstarcraft-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重构,将LunarDate与SolarDate统一为CalendarDate.
- Loading branch information
Birdy
authored and
Birdy
committed
Mar 21, 2020
1 parent
59ccace
commit 5e71b55
Showing
4 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
jstarcraft-core-common/src/main/java/com/jstarcraft/core/common/instant/CalendarDate.java
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,39 @@ | ||
package com.jstarcraft.core.common.instant; | ||
|
||
/** | ||
* 历法日期 | ||
* | ||
* @author Birdy | ||
* | ||
*/ | ||
public interface CalendarDate { | ||
|
||
/** | ||
* 获取历法年 | ||
* | ||
* @return | ||
*/ | ||
int getYear(); | ||
|
||
/*** | ||
* 获取历法月 | ||
* | ||
* @return | ||
*/ | ||
int getMonth(); | ||
|
||
/** | ||
* 获取历法日 | ||
* | ||
* @return | ||
*/ | ||
int getDay(); | ||
|
||
/** | ||
* 是否闰 | ||
* | ||
* @return | ||
*/ | ||
boolean isLeap(); | ||
|
||
} |
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
5 changes: 0 additions & 5 deletions
5
...aft-core-common/src/test/java/com/jstarcraft/core/common/instant/Lunar2SolarTestCase.java
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