Class EarthBranch
java.lang.Object
org.miaixz.bus.core.center.date.culture.Tradition
org.miaixz.bus.core.center.date.culture.Loops
org.miaixz.bus.core.center.date.culture.Samsara
org.miaixz.bus.core.center.date.culture.cn.sixty.EarthBranch
地支
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]古今十二时辰与时间对照 子时(23时至01时):夜半时分,也是一天的开始。 丑时(01时至03时):鸡鸣时分,意味着新的一天开始。 寅时(03时至05时):平旦,夜与日的交替之际,太阳即将初升。 卯时(05时至07时):日出时分,太阳刚刚露脸,冉冉初升。 辰时(07时至09时):食时,古人吃早饭的时间。 巳时(09时至11时):隅中,临近中午的时候。 午时(11时至13时):日中,太阳最猛烈的时候。 未时(13时至15时):日昳,太阳偏西为日跌。 申时(15时至17时):哺时,也被称为日铺、夕食等。 酉时(17时至19时):日入时分,太阳落山,天地昏黄,万物朦胧。 戌时(19时至21时):黄昏时分,太阳已经落山,天色逐渐暗淡。 亥时(21时至23时):人定时分,夜色已深,人们已经停止活动,安歇睡眠了。 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EarthBranchfromIndex(int index) static EarthBranchstatic Stringget(int hour) 根据给定的小时数转换为对应的时辰描述。方位五行藏干之本气藏干之中气,无中气返回null藏干之余气,无余气返回null煞(逢巳日、酉日、丑日必煞东;亥日、卯日、未日必煞西;申日、子日、辰日必煞南;寅日、午日、戌日必煞北。)地支彭祖百忌生肖next()相冲的地支(子午冲,丑未冲,寅申冲,辰戌冲,卯酉冲,巳亥冲)next(int n) 推移static Between将时辰描述转换为现代时间段。Methods inherited from class org.miaixz.bus.core.center.date.culture.Samsara
getIndex, getName, getSize, indexOf, indexOf, nextIndex
-
Field Details
-
NAMES
古今十二时辰与时间对照 子时(23时至01时):夜半时分,也是一天的开始。 丑时(01时至03时):鸡鸣时分,意味着新的一天开始。 寅时(03时至05时):平旦,夜与日的交替之际,太阳即将初升。 卯时(05时至07时):日出时分,太阳刚刚露脸,冉冉初升。 辰时(07时至09时):食时,古人吃早饭的时间。 巳时(09时至11时):隅中,临近中午的时候。 午时(11时至13时):日中,太阳最猛烈的时候。 未时(13时至15时):日昳,太阳偏西为日跌。 申时(15时至17时):哺时,也被称为日铺、夕食等。 酉时(17时至19时):日入时分,太阳落山,天地昏黄,万物朦胧。 戌时(19时至21时):黄昏时分,太阳已经落山,天色逐渐暗淡。 亥时(21时至23时):人定时分,夜色已深,人们已经停止活动,安歇睡眠了。
-
-
Constructor Details
-
EarthBranch
public EarthBranch(int index) -
EarthBranch
-
-
Method Details
-
fromIndex
-
fromName
-
of
将时辰描述转换为现代时间段。- Parameters:
chrono- 时辰描述,可以是“子时”。- Returns:
Between对象,表示起始和结束时间。- Throws:
IllegalArgumentException- 如果输入的时辰描述无效。
-
get
根据给定的小时数转换为对应的时辰描述。- Parameters:
hour- 小时数,应在0到23之间。- Returns:
- 时辰描述,如果小时数无效,则返回“未知”。
-
next
Description copied from interface:Culture推移- Parameters:
n- 推移步数- Returns:
- this
-
getElement
五行- Returns:
- 五行
-
getHideHeavenStemMain
藏干之本气- Returns:
- 天干
-
getHideHeavenStemMiddle
藏干之中气,无中气返回null- Returns:
- 天干
-
getHideHeavenStemResidual
藏干之余气,无余气返回null- Returns:
- 天干
-
getZodiac
生肖- Returns:
- 生肖
-
getDirection
方位- Returns:
- 方位
-
next
相冲的地支(子午冲,丑未冲,寅申冲,辰戌冲,卯酉冲,巳亥冲)- Returns:
- 地支
-
getOminous
煞(逢巳日、酉日、丑日必煞东;亥日、卯日、未日必煞西;申日、子日、辰日必煞南;寅日、午日、戌日必煞北。)- Returns:
- 方位
-
getPengZuEarthBranch
地支彭祖百忌- Returns:
- 地支彭祖百忌
-