-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
88 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ | |
2. 新增:公历日获取公历周。 | ||
3. 修复:公历半年、公历季度、公历时刻推移的错误。 | ||
4. 修复:公历季度初始化的错误。 | ||
|
||
## [1.0.3] - 2024-06-06 | ||
1. 新增:节气第几天。 | ||
2. 优化:枚举。 |
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
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
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,29 @@ | ||
<?php | ||
|
||
namespace com\tyme\solar; | ||
|
||
|
||
use com\tyme\AbstractCultureDay; | ||
|
||
/** | ||
* 节气第几天 | ||
* @author 6tail | ||
* @package com\tyme\solar | ||
*/ | ||
class SolarTermDay extends AbstractCultureDay | ||
{ | ||
function __construct(SolarTerm $solarTerm, int $dayIndex) | ||
{ | ||
parent::__construct($solarTerm, $dayIndex); | ||
} | ||
|
||
/** | ||
* 节气 | ||
* | ||
* @return SolarTerm 节气 | ||
*/ | ||
function getSolarTerm(): SolarTerm | ||
{ | ||
return $this->culture; | ||
} | ||
} |
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