All Implemented Interfaces:
Almanac, Culture

public class EarthBranch extends Samsara
地支
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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时):人定时分,夜色已深,人们已经停止活动,安歇睡眠了。

    Fields inherited from class org.miaixz.bus.core.center.date.culture.Samsara

    index, names
  • Constructor Summary

    Constructors
    Constructor
    Description
    EarthBranch(int index)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromIndex(int index)
     
     
    static String
    get(int hour)
    根据给定的小时数转换为对应的时辰描述。
    方位
    五行
    藏干之本气
    藏干之中气,无中气返回null
    藏干之余气,无余气返回null
    煞(逢巳日、酉日、丑日必煞东;亥日、卯日、未日必煞西;申日、子日、辰日必煞南;寅日、午日、戌日必煞北。)
    地支彭祖百忌
    生肖
    相冲的地支(子午冲,丑未冲,寅申冲,辰戌冲,卯酉冲,巳亥冲)
    next(int n)
    推移
    static Between
    of(String chrono)
    将时辰描述转换为现代时间段。

    Methods inherited from class org.miaixz.bus.core.center.date.culture.Samsara

    getIndex, getName, getSize, indexOf, indexOf, nextIndex

    Methods inherited from class org.miaixz.bus.core.center.date.culture.Tradition

    equals, indexOf, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NAMES

      public static final String[] 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

      public EarthBranch(String name)
  • Method Details

    • fromIndex

      public static EarthBranch fromIndex(int index)
    • fromName

      public static EarthBranch fromName(String name)
    • of

      public static Between of(String chrono)
      将时辰描述转换为现代时间段。
      Parameters:
      chrono - 时辰描述,可以是“子时”。
      Returns:
      Between 对象,表示起始和结束时间。
      Throws:
      IllegalArgumentException - 如果输入的时辰描述无效。
    • get

      public static String get(int hour)
      根据给定的小时数转换为对应的时辰描述。
      Parameters:
      hour - 小时数,应在0到23之间。
      Returns:
      时辰描述,如果小时数无效,则返回“未知”。
    • next

      public EarthBranch next(int n)
      Description copied from interface: Culture
      推移
      Parameters:
      n - 推移步数
      Returns:
      this
    • getElement

      public Element getElement()
      五行
      Returns:
      五行
    • getHideHeavenStemMain

      public HeavenStem getHideHeavenStemMain()
      藏干之本气
      Returns:
      天干
    • getHideHeavenStemMiddle

      public HeavenStem getHideHeavenStemMiddle()
      藏干之中气,无中气返回null
      Returns:
      天干
    • getHideHeavenStemResidual

      public HeavenStem getHideHeavenStemResidual()
      藏干之余气,无余气返回null
      Returns:
      天干
    • getZodiac

      public Zodiac getZodiac()
      生肖
      Returns:
      生肖
    • getDirection

      public Direction getDirection()
      方位
      Returns:
      方位
    • next

      public EarthBranch next()
      相冲的地支(子午冲,丑未冲,寅申冲,辰戌冲,卯酉冲,巳亥冲)
      Returns:
      地支
    • getOminous

      public Direction getOminous()
      煞(逢巳日、酉日、丑日必煞东;亥日、卯日、未日必煞西;申日、子日、辰日必煞南;寅日、午日、戌日必煞北。)
      Returns:
      方位
    • getPengZuEarthBranch

      public PengZuEarthBranch getPengZuEarthBranch()
      地支彭祖百忌
      Returns:
      地支彭祖百忌