com.tyme.eightchar.provider.impl.DefaultEightCharProvider Maven / Gradle / Ivy
package com.tyme.eightchar.provider.impl;
import com.tyme.eightchar.EightChar;
import com.tyme.eightchar.provider.EightCharProvider;
import com.tyme.lunar.LunarHour;
/**
* 默认的八字计算(晚子时算第二天)
*
* @author 6tail
*/
public class DefaultEightCharProvider implements EightCharProvider {
@Override
public EightChar getEightChar(LunarHour hour) {
return new EightChar(hour.getYearSixtyCycle(), hour.getMonthSixtyCycle(), hour.getDaySixtyCycle(), hour.getSixtyCycle());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy