Documentation ¶
Overview ¶
@Title calendar @Description 基础包 @Author 6tail
Index ¶
- Constants
- Variables
- func ListSolarFromBaZi(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string) *list.List
- func ListSolarFromBaZiBySect(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string, ...) *list.List
- func ListSolarFromBaZiBySectAndBaseYear(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string, ...) *list.List
- func NewExactDateFromDate(date time.Time) time.Time
- func NewExactDateFromYmd(year int, month int, day int) time.Time
- func NewExactDateFromYmdHms(year int, month int, day int, hour int, minute int, second int) time.Time
- type DaYun
- func (daYun *DaYun) GetEndAge() int
- func (daYun *DaYun) GetEndYear() int
- func (daYun *DaYun) GetGanZhi() string
- func (daYun *DaYun) GetIndex() int
- func (daYun *DaYun) GetLiuNian() []*LiuNian
- func (daYun *DaYun) GetLiuNianBy(n int) []*LiuNian
- func (daYun *DaYun) GetLunar() *Lunar
- func (daYun *DaYun) GetStartAge() int
- func (daYun *DaYun) GetStartYear() int
- func (daYun *DaYun) GetXiaoYun() []*XiaoYun
- func (daYun *DaYun) GetXiaoYunBy(n int) []*XiaoYun
- func (daYun *DaYun) GetXun() string
- func (daYun *DaYun) GetXunKong() string
- type EightChar
- func (eightChar *EightChar) GetDay() string
- func (eightChar *EightChar) GetDayDiShi() string
- func (eightChar *EightChar) GetDayGan() string
- func (eightChar *EightChar) GetDayGanIndex() int
- func (eightChar *EightChar) GetDayHideGan() []string
- func (eightChar *EightChar) GetDayNaYin() string
- func (eightChar *EightChar) GetDayShiShenGan() string
- func (eightChar *EightChar) GetDayShiShenZhi() *list.List
- func (eightChar *EightChar) GetDayWuXing() string
- func (eightChar *EightChar) GetDayXun() string
- func (eightChar *EightChar) GetDayXunKong() string
- func (eightChar *EightChar) GetDayZhi() string
- func (eightChar *EightChar) GetDayZhiIndex() int
- func (eightChar *EightChar) GetLunar() *Lunar
- func (eightChar *EightChar) GetMingGong() string
- func (eightChar *EightChar) GetMingGongNaYin() string
- func (eightChar *EightChar) GetMonth() string
- func (eightChar *EightChar) GetMonthDiShi() string
- func (eightChar *EightChar) GetMonthGan() string
- func (eightChar *EightChar) GetMonthHideGan() []string
- func (eightChar *EightChar) GetMonthNaYin() string
- func (eightChar *EightChar) GetMonthShiShenGan() string
- func (eightChar *EightChar) GetMonthShiShenZhi() *list.List
- func (eightChar *EightChar) GetMonthWuXing() string
- func (eightChar *EightChar) GetMonthXun() string
- func (eightChar *EightChar) GetMonthXunKong() string
- func (eightChar *EightChar) GetMonthZhi() string
- func (eightChar *EightChar) GetSect() int
- func (eightChar *EightChar) GetShenGong() string
- func (eightChar *EightChar) GetShenGongNaYin() string
- func (eightChar *EightChar) GetTaiYuan() string
- func (eightChar *EightChar) GetTaiYuanNaYin() string
- func (eightChar *EightChar) GetTime() string
- func (eightChar *EightChar) GetTimeDiShi() string
- func (eightChar *EightChar) GetTimeGan() string
- func (eightChar *EightChar) GetTimeHideGan() []string
- func (eightChar *EightChar) GetTimeNaYin() string
- func (eightChar *EightChar) GetTimeShiShenGan() string
- func (eightChar *EightChar) GetTimeShiShenZhi() *list.List
- func (eightChar *EightChar) GetTimeWuXing() string
- func (eightChar *EightChar) GetTimeXun() string
- func (eightChar *EightChar) GetTimeXunKong() string
- func (eightChar *EightChar) GetTimeZhi() string
- func (eightChar *EightChar) GetYear() string
- func (eightChar *EightChar) GetYearDiShi() string
- func (eightChar *EightChar) GetYearGan() string
- func (eightChar *EightChar) GetYearHideGan() []string
- func (eightChar *EightChar) GetYearNaYin() string
- func (eightChar *EightChar) GetYearShiShenGan() string
- func (eightChar *EightChar) GetYearShiShenZhi() *list.List
- func (eightChar *EightChar) GetYearWuXing() string
- func (eightChar *EightChar) GetYearXun() string
- func (eightChar *EightChar) GetYearXunKong() string
- func (eightChar *EightChar) GetYearZhi() string
- func (eightChar *EightChar) GetYun(gender int) *Yun
- func (eightChar *EightChar) SetSect(sect int)
- func (eightChar *EightChar) String() string
- type Foto
- func (f *Foto) GetDay() int
- func (f *Foto) GetDayInChinese() string
- func (f *Foto) GetFestivals() *list.List
- func (f *Foto) GetLunar() *Lunar
- func (f *Foto) GetMonth() int
- func (f *Foto) GetMonthInChinese() string
- func (f *Foto) GetYear() int
- func (f *Foto) GetYearInChinese() string
- func (f *Foto) IsDayYangGong() bool
- func (f *Foto) IsDayZhaiGuanYin() bool
- func (f *Foto) IsDayZhaiShuoWang() bool
- func (f *Foto) IsDayZhaiSix() bool
- func (f *Foto) IsDayZhaiTen() bool
- func (f *Foto) IsMonthZhai() bool
- func (f *Foto) String() string
- func (f *Foto) ToFullString() string
- func (f *Foto) ToString() string
- type FotoFestival
- type Fu
- type Holiday
- func (holiday *Holiday) GetDay() string
- func (holiday *Holiday) GetName() string
- func (holiday *Holiday) GetTarget() string
- func (holiday *Holiday) IsWork() bool
- func (holiday *Holiday) SetDay(day string)
- func (holiday *Holiday) SetName(name string)
- func (holiday *Holiday) SetTarget(target string)
- func (holiday *Holiday) SetWork(work bool)
- func (holiday *Holiday) String() string
- type JieQi
- type LiuNian
- type LiuYue
- type Lunar
- func (lunar *Lunar) GetAnimal() string
- func (lunar *Lunar) GetBaZi() [4]string
- func (lunar *Lunar) GetBaZiNaYin() [4]string
- func (lunar *Lunar) GetBaZiShiShenDayZhi() *list.List
- func (lunar *Lunar) GetBaZiShiShenGan() [4]string
- func (lunar *Lunar) GetBaZiShiShenMonthZhi() *list.List
- func (lunar *Lunar) GetBaZiShiShenTimeZhi() *list.List
- func (lunar *Lunar) GetBaZiShiShenYearZhi() *list.List
- func (lunar *Lunar) GetBaZiShiShenZhi() [4]string
- func (lunar *Lunar) GetBaZiWuXing() [4]string
- func (lunar *Lunar) GetChong() string
- func (lunar *Lunar) GetChongDesc() string
- func (lunar *Lunar) GetChongGan() string
- func (lunar *Lunar) GetChongGanTie() string
- func (lunar *Lunar) GetChongShengXiao() string
- func (lunar *Lunar) GetCurrentJie() *JieQi
- func (lunar *Lunar) GetCurrentJieQi() *JieQi
- func (lunar *Lunar) GetCurrentQi() *JieQi
- func (lunar *Lunar) GetDay() int
- func (lunar *Lunar) GetDayChong() string
- func (lunar *Lunar) GetDayChongDesc() string
- func (lunar *Lunar) GetDayChongGan() string
- func (lunar *Lunar) GetDayChongGanTie() string
- func (lunar *Lunar) GetDayChongShengXiao() string
- func (lunar *Lunar) GetDayGan() string
- func (lunar *Lunar) GetDayGanExact() string
- func (lunar *Lunar) GetDayGanExact2() string
- func (lunar *Lunar) GetDayGanIndex() int
- func (lunar *Lunar) GetDayGanIndexExact() int
- func (lunar *Lunar) GetDayGanIndexExact2() int
- func (lunar *Lunar) GetDayInChinese() string
- func (lunar *Lunar) GetDayInGanZhi() string
- func (lunar *Lunar) GetDayInGanZhiExact() string
- func (lunar *Lunar) GetDayInGanZhiExact2() string
- func (lunar *Lunar) GetDayJi() *list.List
- func (lunar *Lunar) GetDayJiShen() *list.List
- func (lunar *Lunar) GetDayLu() string
- func (lunar *Lunar) GetDayNaYin() string
- func (lunar *Lunar) GetDayNineStar() *NineStar
- func (lunar *Lunar) GetDayPositionCai() string
- func (lunar *Lunar) GetDayPositionCaiDesc() string
- func (lunar *Lunar) GetDayPositionFu() string
- func (lunar *Lunar) GetDayPositionFuBySect(sect int) string
- func (lunar *Lunar) GetDayPositionFuDesc() string
- func (lunar *Lunar) GetDayPositionFuDescBySect(sect int) string
- func (lunar *Lunar) GetDayPositionTai() string
- func (lunar *Lunar) GetDayPositionXi() string
- func (lunar *Lunar) GetDayPositionXiDesc() string
- func (lunar *Lunar) GetDayPositionYangGui() string
- func (lunar *Lunar) GetDayPositionYangGuiDesc() string
- func (lunar *Lunar) GetDayPositionYinGui() string
- func (lunar *Lunar) GetDayPositionYinGuiDesc() string
- func (lunar *Lunar) GetDaySha() string
- func (lunar *Lunar) GetDayShengXiao() string
- func (lunar *Lunar) GetDayTianShen() string
- func (lunar *Lunar) GetDayTianShenLuck() string
- func (lunar *Lunar) GetDayTianShenType() string
- func (lunar *Lunar) GetDayXiongSha() *list.List
- func (lunar *Lunar) GetDayXun() string
- func (lunar *Lunar) GetDayXunExact() string
- func (lunar *Lunar) GetDayXunExact2() string
- func (lunar *Lunar) GetDayXunKong() string
- func (lunar *Lunar) GetDayXunKongExact() string
- func (lunar *Lunar) GetDayXunKongExact2() string
- func (lunar *Lunar) GetDayYi() *list.List
- func (lunar *Lunar) GetDayZhi() string
- func (lunar *Lunar) GetDayZhiExact() string
- func (lunar *Lunar) GetDayZhiExact2() string
- func (lunar *Lunar) GetDayZhiIndex() int
- func (lunar *Lunar) GetDayZhiIndexExact() int
- func (lunar *Lunar) GetDayZhiIndexExact2() int
- func (lunar *Lunar) GetEightChar() *EightChar
- func (lunar *Lunar) GetFestivals() *list.List
- func (lunar *Lunar) GetFoto() *Foto
- func (lunar *Lunar) GetFu() *Fu
- func (lunar *Lunar) GetGan() string
- func (lunar *Lunar) GetGong() string
- func (lunar *Lunar) GetHour() int
- func (lunar *Lunar) GetJie() string
- func (lunar *Lunar) GetJieQi() string
- func (lunar *Lunar) GetJieQiList() *list.List
- func (lunar *Lunar) GetJieQiTable() map[string]*Solar
- func (lunar *Lunar) GetLiuYao() string
- func (lunar *Lunar) GetMinute() int
- func (lunar *Lunar) GetMonth() int
- func (lunar *Lunar) GetMonthGan() string
- func (lunar *Lunar) GetMonthGanExact() string
- func (lunar *Lunar) GetMonthGanIndex() int
- func (lunar *Lunar) GetMonthGanIndexExact() int
- func (lunar *Lunar) GetMonthInChinese() string
- func (lunar *Lunar) GetMonthInGanZhi() string
- func (lunar *Lunar) GetMonthInGanZhiExact() string
- func (lunar *Lunar) GetMonthNaYin() string
- func (lunar *Lunar) GetMonthNineStar() *NineStar
- func (lunar *Lunar) GetMonthPositionTai() string
- func (lunar *Lunar) GetMonthShengXiao() string
- func (lunar *Lunar) GetMonthXun() string
- func (lunar *Lunar) GetMonthXunExact() string
- func (lunar *Lunar) GetMonthXunKong() string
- func (lunar *Lunar) GetMonthXunKongExact() string
- func (lunar *Lunar) GetMonthZhi() string
- func (lunar *Lunar) GetMonthZhiExact() string
- func (lunar *Lunar) GetMonthZhiIndex() int
- func (lunar *Lunar) GetMonthZhiIndexExact() int
- func (lunar *Lunar) GetNextJie() *JieQi
- func (lunar *Lunar) GetNextJieQi() *JieQi
- func (lunar *Lunar) GetNextQi() *JieQi
- func (lunar *Lunar) GetOtherFestivals() *list.List
- func (lunar *Lunar) GetPengZuGan() string
- func (lunar *Lunar) GetPengZuZhi() string
- func (lunar *Lunar) GetPositionCai() string
- func (lunar *Lunar) GetPositionCaiDesc() string
- func (lunar *Lunar) GetPositionFu() string
- func (lunar *Lunar) GetPositionFuDesc() string
- func (lunar *Lunar) GetPositionXi() string
- func (lunar *Lunar) GetPositionXiDesc() string
- func (lunar *Lunar) GetPositionYangGui() string
- func (lunar *Lunar) GetPositionYangGuiDesc() string
- func (lunar *Lunar) GetPositionYinGui() string
- func (lunar *Lunar) GetPositionYinGuiDesc() string
- func (lunar *Lunar) GetPrevJie() *JieQi
- func (lunar *Lunar) GetPrevJieQi() *JieQi
- func (lunar *Lunar) GetPrevQi() *JieQi
- func (lunar *Lunar) GetQi() string
- func (lunar *Lunar) GetSeason() string
- func (lunar *Lunar) GetSecond() int
- func (lunar *Lunar) GetSha() string
- func (lunar *Lunar) GetShengxiao() string
- func (lunar *Lunar) GetShou() string
- func (lunar *Lunar) GetShuJiu() *ShuJiu
- func (lunar *Lunar) GetSolar() *Solar
- func (lunar *Lunar) GetTime() *LunarTime
- func (lunar *Lunar) GetTimeChong() string
- func (lunar *Lunar) GetTimeChongDesc() string
- func (lunar *Lunar) GetTimeChongGan() string
- func (lunar *Lunar) GetTimeChongGanTie() string
- func (lunar *Lunar) GetTimeChongShengXiao() string
- func (lunar *Lunar) GetTimeGan() string
- func (lunar *Lunar) GetTimeGanIndex() int
- func (lunar *Lunar) GetTimeInGanZhi() string
- func (lunar *Lunar) GetTimeJi() *list.List
- func (lunar *Lunar) GetTimeNaYin() string
- func (lunar *Lunar) GetTimeNineStar() *NineStar
- func (lunar *Lunar) GetTimePositionCai() string
- func (lunar *Lunar) GetTimePositionCaiDesc() string
- func (lunar *Lunar) GetTimePositionFu() string
- func (lunar *Lunar) GetTimePositionFuDesc() string
- func (lunar *Lunar) GetTimePositionXi() string
- func (lunar *Lunar) GetTimePositionXiDesc() string
- func (lunar *Lunar) GetTimePositionYangGui() string
- func (lunar *Lunar) GetTimePositionYangGuiDesc() string
- func (lunar *Lunar) GetTimePositionYinGui() string
- func (lunar *Lunar) GetTimePositionYinGuiDesc() string
- func (lunar *Lunar) GetTimeSha() string
- func (lunar *Lunar) GetTimeShengXiao() string
- func (lunar *Lunar) GetTimeTianShen() string
- func (lunar *Lunar) GetTimeTianShenLuck() string
- func (lunar *Lunar) GetTimeTianShenType() string
- func (lunar *Lunar) GetTimeXun() string
- func (lunar *Lunar) GetTimeXunKong() string
- func (lunar *Lunar) GetTimeYi() *list.List
- func (lunar *Lunar) GetTimeZhi() string
- func (lunar *Lunar) GetTimeZhiIndex() int
- func (lunar *Lunar) GetTimes() []*LunarTime
- func (lunar *Lunar) GetWeek() int
- func (lunar *Lunar) GetWeekInChinese() string
- func (lunar *Lunar) GetWuHou() string
- func (lunar *Lunar) GetXiu() string
- func (lunar *Lunar) GetXiuLuck() string
- func (lunar *Lunar) GetXiuSong() string
- func (lunar *Lunar) GetYear() int
- func (lunar *Lunar) GetYearGan() string
- func (lunar *Lunar) GetYearGanByLiChun() string
- func (lunar *Lunar) GetYearGanExact() string
- func (lunar *Lunar) GetYearGanIndex() int
- func (lunar *Lunar) GetYearGanIndexByLiChun() int
- func (lunar *Lunar) GetYearGanIndexExact() int
- func (lunar *Lunar) GetYearInChinese() string
- func (lunar *Lunar) GetYearInGanZhi() string
- func (lunar *Lunar) GetYearInGanZhiByLiChun() string
- func (lunar *Lunar) GetYearInGanZhiExact() string
- func (lunar *Lunar) GetYearNaYin() string
- func (lunar *Lunar) GetYearNineStar() *NineStar
- func (lunar *Lunar) GetYearShengXiao() string
- func (lunar *Lunar) GetYearShengXiaoByLiChun() string
- func (lunar *Lunar) GetYearShengXiaoExact() string
- func (lunar *Lunar) GetYearXun() string
- func (lunar *Lunar) GetYearXunByLiChun() string
- func (lunar *Lunar) GetYearXunExact() string
- func (lunar *Lunar) GetYearXunKong() string
- func (lunar *Lunar) GetYearXunKongByLiChun() string
- func (lunar *Lunar) GetYearXunKongExact() string
- func (lunar *Lunar) GetYearZhi() string
- func (lunar *Lunar) GetYearZhiByLiChun() string
- func (lunar *Lunar) GetYearZhiExact() string
- func (lunar *Lunar) GetYearZhiIndex() int
- func (lunar *Lunar) GetYearZhiIndexByLiChun() int
- func (lunar *Lunar) GetYearZhiIndexExact() int
- func (lunar *Lunar) GetYueXiang() string
- func (lunar *Lunar) GetZheng() string
- func (lunar *Lunar) GetZhi() string
- func (lunar *Lunar) GetZhiXing() string
- func (lunar *Lunar) Next(days int) *Lunar
- func (lunar *Lunar) String() string
- func (lunar *Lunar) ToFullString() string
- type LunarMonth
- type LunarTime
- func (lunarTime *LunarTime) GetChong() string
- func (lunarTime *LunarTime) GetChongDesc() string
- func (lunarTime *LunarTime) GetChongGan() string
- func (lunarTime *LunarTime) GetChongGanTie() string
- func (lunarTime *LunarTime) GetChongShengXiao() string
- func (lunarTime *LunarTime) GetGan() string
- func (lunarTime *LunarTime) GetGanIndex() int
- func (lunarTime *LunarTime) GetGanZhi() string
- func (lunarTime *LunarTime) GetJi() *list.List
- func (lunarTime *LunarTime) GetMaxHm() string
- func (lunarTime *LunarTime) GetMinHm() string
- func (lunarTime *LunarTime) GetNaYin() string
- func (lunarTime *LunarTime) GetNineStar() *NineStar
- func (lunarTime *LunarTime) GetPositionCai() string
- func (lunarTime *LunarTime) GetPositionCaiDesc() string
- func (lunarTime *LunarTime) GetPositionFu() string
- func (lunarTime *LunarTime) GetPositionFuBySect(sect int) string
- func (lunarTime *LunarTime) GetPositionFuDesc() string
- func (lunarTime *LunarTime) GetPositionFuDescBySect(sect int) string
- func (lunarTime *LunarTime) GetPositionXi() string
- func (lunarTime *LunarTime) GetPositionXiDesc() string
- func (lunarTime *LunarTime) GetPositionYangGui() string
- func (lunarTime *LunarTime) GetPositionYangGuiDesc() string
- func (lunarTime *LunarTime) GetPositionYinGui() string
- func (lunarTime *LunarTime) GetPositionYinGuiDesc() string
- func (lunarTime *LunarTime) GetSha() string
- func (lunarTime *LunarTime) GetShengXiao() string
- func (lunarTime *LunarTime) GetTianShen() string
- func (lunarTime *LunarTime) GetTianShenLuck() string
- func (lunarTime *LunarTime) GetTianShenType() string
- func (lunarTime *LunarTime) GetXun() string
- func (lunarTime *LunarTime) GetXunKong() string
- func (lunarTime *LunarTime) GetYi() *list.List
- func (lunarTime *LunarTime) GetZhi() string
- func (lunarTime *LunarTime) GetZhiIndex() int
- func (lunarTime *LunarTime) String() string
- func (lunarTime *LunarTime) ToString() string
- type LunarYear
- func (lunarYear *LunarYear) GetDeJin() string
- func (lunarYear *LunarYear) GetFenBing() string
- func (lunarYear *LunarYear) GetGengTian() string
- func (lunarYear *LunarYear) GetJieQiJulianDays() []float64
- func (lunarYear *LunarYear) GetMonth(lunarMonth int) *LunarMonth
- func (lunarYear *LunarYear) GetMonths() *list.List
- func (lunarYear *LunarYear) GetYear() int
- func (lunarYear *LunarYear) GetZhiShui() string
- func (lunarYear *LunarYear) String() string
- func (lunarYear *LunarYear) ToFullString() string
- type NineStar
- func (nineStar *NineStar) GetBaMenInQiMen() string
- func (nineStar *NineStar) GetColor() string
- func (nineStar *NineStar) GetIndex() int
- func (nineStar *NineStar) GetLuckInQiMen() string
- func (nineStar *NineStar) GetLuckInXuanKong() string
- func (nineStar *NineStar) GetNameInBeiDou() string
- func (nineStar *NineStar) GetNameInQiMen() string
- func (nineStar *NineStar) GetNameInTaiYi() string
- func (nineStar *NineStar) GetNameInXuanKong() string
- func (nineStar *NineStar) GetNumber() string
- func (nineStar *NineStar) GetPosition() string
- func (nineStar *NineStar) GetPositionDesc() string
- func (nineStar *NineStar) GetSongInTaiYi() string
- func (nineStar *NineStar) GetTypeInTaiYi() string
- func (nineStar *NineStar) GetWuXing() string
- func (nineStar *NineStar) GetYinYangInQiMen() string
- func (nineStar *NineStar) String() string
- func (nineStar *NineStar) ToFullString() string
- type ShuJiu
- type Solar
- func (solar *Solar) GetCalendar() time.Time
- func (solar *Solar) GetDay() int
- func (solar *Solar) GetFestivals() *list.List
- func (solar *Solar) GetHour() int
- func (solar *Solar) GetJulianDay() float64
- func (solar *Solar) GetLunar() *Lunar
- func (solar *Solar) GetMinute() int
- func (solar *Solar) GetMonth() int
- func (solar *Solar) GetOtherFestivals() *list.List
- func (solar *Solar) GetSecond() int
- func (solar *Solar) GetWeek() int
- func (solar *Solar) GetWeekInChinese() string
- func (solar *Solar) GetXingZuo() string
- func (solar *Solar) GetXingzuo() string
- func (solar *Solar) GetYear() int
- func (solar *Solar) IsLeapYear() bool
- func (solar *Solar) Next(days int) *Solar
- func (solar *Solar) String() string
- func (solar *Solar) ToFullString() string
- func (solar *Solar) ToYmd() string
- func (solar *Solar) ToYmdHms() string
- type SolarHalfYear
- func (solarHalfYear *SolarHalfYear) GetIndex() int
- func (solarHalfYear *SolarHalfYear) GetMonth() int
- func (solarHalfYear *SolarHalfYear) GetMonths() *list.List
- func (solarHalfYear *SolarHalfYear) GetYear() int
- func (solarHalfYear *SolarHalfYear) Next(halfYears int) *SolarHalfYear
- func (solarHalfYear *SolarHalfYear) String() string
- func (solarHalfYear *SolarHalfYear) ToFullString() string
- type SolarMonth
- type SolarSeason
- func (solarSeason *SolarSeason) GetIndex() int
- func (solarSeason *SolarSeason) GetMonth() int
- func (solarSeason *SolarSeason) GetMonths() *list.List
- func (solarSeason *SolarSeason) GetYear() int
- func (solarSeason *SolarSeason) Next(seasons int) *SolarSeason
- func (solarSeason *SolarSeason) String() string
- func (solarSeason *SolarSeason) ToFullString() string
- type SolarWeek
- func (solarWeek *SolarWeek) GetDay() int
- func (solarWeek *SolarWeek) GetDays() *list.List
- func (solarWeek *SolarWeek) GetDaysInMonth() *list.List
- func (solarWeek *SolarWeek) GetFirstDay() *Solar
- func (solarWeek *SolarWeek) GetFirstDayInMonth() *Solar
- func (solarWeek *SolarWeek) GetIndex() int
- func (solarWeek *SolarWeek) GetMonth() int
- func (solarWeek *SolarWeek) GetYear() int
- func (solarWeek *SolarWeek) Next(weeks int, separateMonth bool) *SolarWeek
- func (solarWeek *SolarWeek) String() string
- func (solarWeek *SolarWeek) ToFullString() string
- type SolarYear
- type XiaoYun
- type Yun
- func (yun *Yun) GetDaYun() []*DaYun
- func (yun *Yun) GetDaYunBy(n int) []*DaYun
- func (yun *Yun) GetGender() int
- func (yun *Yun) GetLunar() *Lunar
- func (yun *Yun) GetStartDay() int
- func (yun *Yun) GetStartMonth() int
- func (yun *Yun) GetStartSolar() *Solar
- func (yun *Yun) GetStartYear() int
- func (yun *Yun) IsForward() bool
Constants ¶
const J2000 = 2451545
const MONTH_IN_HALF_YEAR = 6
const MONTH_IN_SEASON = 3
const MONTH_IN_YEAR = 12
Variables ¶
var BA_MEN_QI_MEN = []string{"休", "死", "伤", "杜", "", "开", "惊", "生", "景"}
八门(奇门遁甲)
var CACHE = map[int]*LunarYear{}
var CHANG_SHENG = []string{"长生", "沐浴", "冠带", "临官", "帝旺", "衰", "病", "死", "墓", "绝", "胎", "养"}
长生十二神
var COLOR = []string{"白", "黒", "碧", "绿", "黄", "白", "赤", "白", "紫"}
七色
var DEAD_YEAR = -543
var JIE_QI = []string{"冬至", "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪"}
var JIE_QI_IN_USE = []string{"DA_XUE", "冬至", "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "DONG_ZHI", "XIAO_HAN", "DA_HAN", "LI_CHUN", "YU_SHUI", "JING_ZHE"}
var LEAP = map[int]int{}
var LEAP_11 = []int{} /* 221 elements not displayed */
var LEAP_12 = []int{} /* 156 elements not displayed */
var LUCK_QI_MEN = []string{"大凶", "大凶", "小吉", "大吉", "大吉", "大吉", "小凶", "小吉", "小凶"}
吉凶(奇门遁甲)
var LUCK_XUAN_KONG = []string{"吉", "凶", "凶", "吉", "凶", "吉", "凶", "吉", "吉"}
吉凶(玄空风水)
var MONTH_ZHI = []string{"", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥", "子", "丑"}
月支,按正月起寅排列
var NAME_BEI_DOU = []string{"天枢", "天璇", "天玑", "天权", "玉衡", "开阳", "摇光", "洞明", "隐元"}
北斗九星
var NAME_QI_MEN = []string{"天蓬", "天芮", "天冲", "天辅", "天禽", "天心", "天柱", "天任", "天英"}
奇门九星(奇门遁甲,也称天盘九星)
var NAME_TAI_YI = []string{"太乙", "摄提", "轩辕", "招摇", "天符", "青龙", "咸池", "太阴", "天乙"}
太乙九神(太乙神数)
var NAME_XUAN_KONG = []string{"贪狼", "巨门", "禄存", "文曲", "廉贞", "武曲", "破军", "左辅", "右弼"}
玄空九星(玄空风水)
var NUMBER = []string{"一", "二", "三", "四", "五", "六", "七", "八", "九"}
九数
var POSITION = []string{"坎", "坤", "震", "巽", "中", "乾", "兑", "艮", "离"}
后天八卦方位
var SONG_TAI_YI = []string{"门中太乙明,星官号贪狼,赌彩财喜旺,婚姻大吉昌,出入无阻挡,参谒见贤良,此行三五里,黑衣别阴阳。", "门前见摄提,百事必忧疑,相生犹自可,相克祸必临,死门并相会,老妇哭悲啼,求谋并吉事,尽皆不相宜,只可藏隐遁,若动伤身疾。", "出入会轩辕,凡事必缠牵,相生全不美,相克更忧煎,远行多不利,博彩尽输钱,九天玄女法,句句不虚言。", "招摇号木星,当之事莫行,相克行人阻,阴人口舌迎,梦寐多惊惧,屋响斧自鸣,阴阳消息理,万法弗违情。", "五鬼为天符,当门阴女谋,相克无好事,行路阻中途,走失难寻觅,道逢有尼姑,此星当门值,万事有灾除。", "神光跃青龙,财气喜重重,投入有酒食,赌彩最兴隆,更逢相生旺,休言克破凶,见贵安营寨,万事总吉同。", "吾将为咸池,当之尽不宜,出入多不利,相克有灾情,赌彩全输尽,求财空手回,仙人真妙语,愚人莫与知,动用虚惊退,反复逆风吹。", "坐临太阴星,百祸不相侵,求谋悉成就,知交有觅寻,回风归来路,恐有殃伏起,密语中记取,慎乎莫轻行。", "迎来天乙星,相逢百事兴,运用和合庆,茶酒喜相迎,求谋并嫁娶,好合有天成,祸福如神验,吉凶甚分明。"}
太乙九神歌诀(太乙神数)
var TYPE_TAI_YI = []string{"吉神", "凶神", "安神", "安神", "凶神", "吉神", "凶神", "吉神", "吉神"}
太乙九神对应类型
var WU_XING = []string{"水", "土", "木", "木", "土", "金", "金", "土", "火"}
五行
var YIN_YANG_QI_MEN = []string{"阳", "阴", "阳", "阳", "阳", "阴", "阴", "阳", "阴"}
阴阳(奇门遁甲)
Functions ¶
func ListSolarFromBaZi ¶
func ListSolarFromBaZiBySect ¶
Types ¶
type DaYun ¶
type DaYun struct {
// contains filtered or unexported fields
}
func (*DaYun) GetEndYear ¶
func (*DaYun) GetStartAge ¶
func (*DaYun) GetStartYear ¶
type EightChar ¶
type EightChar struct {
// contains filtered or unexported fields
}
八字
func NewEightChar ¶
func (*EightChar) GetDayDiShi ¶
func (*EightChar) GetDayGanIndex ¶
func (*EightChar) GetDayHideGan ¶
func (*EightChar) GetDayNaYin ¶
func (*EightChar) GetDayShiShenGan ¶
func (*EightChar) GetDayShiShenZhi ¶
func (*EightChar) GetDayWuXing ¶
func (*EightChar) GetDayZhiIndex ¶
func (*EightChar) GetMingGong ¶
func (*EightChar) GetMingGongNaYin ¶
func (*EightChar) GetMonthDiShi ¶
func (*EightChar) GetMonthGan ¶
func (*EightChar) GetMonthHideGan ¶
func (*EightChar) GetMonthNaYin ¶
func (*EightChar) GetMonthShiShenGan ¶
func (*EightChar) GetMonthShiShenZhi ¶
func (*EightChar) GetMonthWuXing ¶
func (*EightChar) GetMonthZhi ¶
func (*EightChar) GetShenGong ¶
func (*EightChar) GetShenGongNaYin ¶
func (*EightChar) GetTaiYuan ¶
func (*EightChar) GetTaiYuanNaYin ¶
func (*EightChar) GetTimeDiShi ¶
func (*EightChar) GetTimeGan ¶
func (*EightChar) GetTimeHideGan ¶
func (*EightChar) GetTimeNaYin ¶
func (*EightChar) GetTimeShiShenGan ¶
func (*EightChar) GetTimeShiShenZhi ¶
func (*EightChar) GetTimeWuXing ¶
func (*EightChar) GetTimeZhi ¶
func (*EightChar) GetYearDiShi ¶
func (*EightChar) GetYearGan ¶
func (*EightChar) GetYearHideGan ¶
func (*EightChar) GetYearNaYin ¶
func (*EightChar) GetYearShiShenGan ¶
func (*EightChar) GetYearShiShenZhi ¶
func (*EightChar) GetYearWuXing ¶
func (*EightChar) GetYearZhi ¶
type Foto ¶
type Foto struct {
// contains filtered or unexported fields
}
佛历
func NewFotoFromLunar ¶
func (*Foto) GetDayInChinese ¶
func (*Foto) GetFestivals ¶
func (*Foto) GetMonthInChinese ¶
func (*Foto) GetYearInChinese ¶
func (*Foto) IsDayYangGong ¶
func (*Foto) IsDayZhaiGuanYin ¶
func (*Foto) IsDayZhaiShuoWang ¶
func (*Foto) IsDayZhaiSix ¶
func (*Foto) IsDayZhaiTen ¶
func (*Foto) IsMonthZhai ¶
func (*Foto) ToFullString ¶
type FotoFestival ¶
type FotoFestival struct {
// contains filtered or unexported fields
}
佛历因果犯忌
func NewFotoFestival ¶
func NewFotoFestival(name string, result string, everyMonth bool, remark string) *FotoFestival
func (*FotoFestival) GetName ¶
func (f *FotoFestival) GetName() string
func (*FotoFestival) GetRemark ¶
func (f *FotoFestival) GetRemark() string
func (*FotoFestival) GetResult ¶
func (f *FotoFestival) GetResult() string
func (*FotoFestival) IsEveryMonth ¶
func (f *FotoFestival) IsEveryMonth() bool
func (*FotoFestival) String ¶
func (f *FotoFestival) String() string
func (*FotoFestival) ToString ¶
func (f *FotoFestival) ToString() string
type LiuNian ¶
type LiuNian struct {
// contains filtered or unexported fields
}
流年
func NewLiuNian ¶
type LiuYue ¶
type LiuYue struct {
// contains filtered or unexported fields
}
流月
type Lunar ¶
type Lunar struct {
// contains filtered or unexported fields
}
阴历
func NewLunarFromDate ¶
func (*Lunar) GetBaZiNaYin ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenDayZhi ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenGan ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenMonthZhi ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenTimeZhi ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenYearZhi ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiShiShenZhi ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetBaZiWuXing ¶
@Deprecated: 该方法已废弃,请使用GetEightChar
func (*Lunar) GetChongDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayChongDesc
func (*Lunar) GetChongGan ¶
@Deprecated: 该方法已废弃,请使用GetDayChongGan
func (*Lunar) GetChongGanTie ¶
@Deprecated: 该方法已废弃,请使用GetDayChongGanTie
func (*Lunar) GetChongShengXiao ¶
@Deprecated: 该方法已废弃,请使用GetDayChongShengXiao
func (*Lunar) GetDayChong ¶
func (*Lunar) GetDayChongDesc ¶
func (*Lunar) GetDayChongGan ¶
func (*Lunar) GetDayChongGanTie ¶
func (*Lunar) GetDayChongShengXiao ¶
func (*Lunar) GetDayGanExact ¶
func (*Lunar) GetDayGanExact2 ¶
func (*Lunar) GetDayGanIndex ¶
func (*Lunar) GetDayGanIndexExact ¶
func (*Lunar) GetDayGanIndexExact2 ¶
func (*Lunar) GetDayInChinese ¶
func (*Lunar) GetDayInGanZhi ¶
func (*Lunar) GetDayInGanZhiExact ¶
func (*Lunar) GetDayInGanZhiExact2 ¶
func (*Lunar) GetDayJiShen ¶
func (*Lunar) GetDayNaYin ¶
func (*Lunar) GetDayNineStar ¶
func (*Lunar) GetDayPositionCai ¶
func (*Lunar) GetDayPositionCaiDesc ¶
func (*Lunar) GetDayPositionFu ¶
func (*Lunar) GetDayPositionFuBySect ¶
func (*Lunar) GetDayPositionFuDesc ¶
func (*Lunar) GetDayPositionFuDescBySect ¶
func (*Lunar) GetDayPositionTai ¶
func (*Lunar) GetDayPositionXi ¶
func (*Lunar) GetDayPositionXiDesc ¶
func (*Lunar) GetDayPositionYangGui ¶
func (*Lunar) GetDayPositionYangGuiDesc ¶
func (*Lunar) GetDayPositionYinGui ¶
func (*Lunar) GetDayPositionYinGuiDesc ¶
func (*Lunar) GetDayShengXiao ¶
func (*Lunar) GetDayTianShen ¶
func (*Lunar) GetDayTianShenLuck ¶
func (*Lunar) GetDayTianShenType ¶
func (*Lunar) GetDayXiongSha ¶
func (*Lunar) GetDayXunKongExact2 ¶
获取值日空亡(晚子时日柱算当天)
func (*Lunar) GetDayZhiExact ¶
func (*Lunar) GetDayZhiExact2 ¶
func (*Lunar) GetDayZhiIndex ¶
func (*Lunar) GetDayZhiIndexExact ¶
func (*Lunar) GetDayZhiIndexExact2 ¶
func (*Lunar) GetEightChar ¶
func (*Lunar) GetFestivals ¶
func (*Lunar) GetJieQiList ¶
func (*Lunar) GetJieQiTable ¶
func (*Lunar) GetMonthGan ¶
func (*Lunar) GetMonthGanExact ¶
func (*Lunar) GetMonthGanIndex ¶
func (*Lunar) GetMonthGanIndexExact ¶
func (*Lunar) GetMonthInChinese ¶
func (*Lunar) GetMonthInGanZhi ¶
func (*Lunar) GetMonthInGanZhiExact ¶
func (*Lunar) GetMonthNaYin ¶
func (*Lunar) GetMonthNineStar ¶
func (*Lunar) GetMonthPositionTai ¶
func (*Lunar) GetMonthShengXiao ¶
func (*Lunar) GetMonthXunKongExact ¶
获取值月空亡(以节交接时刻起算)
func (*Lunar) GetMonthZhi ¶
func (*Lunar) GetMonthZhiExact ¶
func (*Lunar) GetMonthZhiIndex ¶
func (*Lunar) GetMonthZhiIndexExact ¶
func (*Lunar) GetOtherFestivals ¶
func (*Lunar) GetPengZuGan ¶
func (*Lunar) GetPengZuZhi ¶
func (*Lunar) GetPositionCai ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionCai
func (*Lunar) GetPositionCaiDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionCaiDesc
func (*Lunar) GetPositionFu ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionFu
func (*Lunar) GetPositionFuDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionFuDesc
func (*Lunar) GetPositionXi ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionXi
func (*Lunar) GetPositionXiDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionXiDesc
func (*Lunar) GetPositionYangGui ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionYangGui
func (*Lunar) GetPositionYangGuiDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionYangGuiDesc
func (*Lunar) GetPositionYinGui ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionYinGui
func (*Lunar) GetPositionYinGuiDesc ¶
@Deprecated: 该方法已废弃,请使用GetDayPositionYinGuiDesc
func (*Lunar) GetShengxiao ¶
@Deprecated: 该方法已废弃,请使用GetYearShengXiao
func (*Lunar) GetTimeChong ¶
func (*Lunar) GetTimeChongDesc ¶
func (*Lunar) GetTimeChongGan ¶
func (*Lunar) GetTimeChongGanTie ¶
func (*Lunar) GetTimeChongShengXiao ¶
func (*Lunar) GetTimeGan ¶
func (*Lunar) GetTimeGanIndex ¶
func (*Lunar) GetTimeInGanZhi ¶
func (*Lunar) GetTimeNaYin ¶
func (*Lunar) GetTimeNineStar ¶
func (*Lunar) GetTimePositionCai ¶
func (*Lunar) GetTimePositionCaiDesc ¶
func (*Lunar) GetTimePositionFu ¶
func (*Lunar) GetTimePositionFuDesc ¶
func (*Lunar) GetTimePositionXi ¶
func (*Lunar) GetTimePositionXiDesc ¶
func (*Lunar) GetTimePositionYangGui ¶
func (*Lunar) GetTimePositionYangGuiDesc ¶
func (*Lunar) GetTimePositionYinGui ¶
func (*Lunar) GetTimePositionYinGuiDesc ¶
func (*Lunar) GetTimeSha ¶
func (*Lunar) GetTimeShengXiao ¶
func (*Lunar) GetTimeTianShen ¶
func (*Lunar) GetTimeTianShenLuck ¶
func (*Lunar) GetTimeTianShenType ¶
func (*Lunar) GetTimeZhi ¶
func (*Lunar) GetTimeZhiIndex ¶
func (*Lunar) GetWeekInChinese ¶
func (*Lunar) GetXiuLuck ¶
func (*Lunar) GetXiuSong ¶
func (*Lunar) GetYearGan ¶
func (*Lunar) GetYearGanByLiChun ¶
func (*Lunar) GetYearGanExact ¶
func (*Lunar) GetYearGanIndex ¶
func (*Lunar) GetYearGanIndexByLiChun ¶
func (*Lunar) GetYearGanIndexExact ¶
func (*Lunar) GetYearInChinese ¶
func (*Lunar) GetYearInGanZhi ¶
func (*Lunar) GetYearInGanZhiByLiChun ¶
func (*Lunar) GetYearInGanZhiExact ¶
func (*Lunar) GetYearNaYin ¶
func (*Lunar) GetYearNineStar ¶
func (*Lunar) GetYearShengXiao ¶
func (*Lunar) GetYearShengXiaoByLiChun ¶
func (*Lunar) GetYearShengXiaoExact ¶
func (*Lunar) GetYearXunByLiChun ¶
获取年所在旬(以立春当天作为新年的开始)
func (*Lunar) GetYearXunKongByLiChun ¶
获取值年空亡(以立春当天作为新年的开始)
func (*Lunar) GetYearXunKongExact ¶
获取值年空亡(以立春交接时刻作为新年的开始)
func (*Lunar) GetYearZhi ¶
func (*Lunar) GetYearZhiByLiChun ¶
func (*Lunar) GetYearZhiExact ¶
func (*Lunar) GetYearZhiIndex ¶
func (*Lunar) GetYearZhiIndexByLiChun ¶
func (*Lunar) GetYearZhiIndexExact ¶
func (*Lunar) GetYueXiang ¶
func (*Lunar) GetZhiXing ¶
func (*Lunar) ToFullString ¶
type LunarMonth ¶
type LunarMonth struct {
// contains filtered or unexported fields
}
阴历月
func NewLunarMonth ¶
func NewLunarMonth(lunarYear int, lunarMonth int, dayCount int, firstJulianDay float64) *LunarMonth
func NewLunarMonthFromYm ¶
func NewLunarMonthFromYm(lunarYear int, lunarMonth int) *LunarMonth
func (*LunarMonth) GetDayCount ¶
func (lunarMonth *LunarMonth) GetDayCount() int
func (*LunarMonth) GetFirstJulianDay ¶
func (lunarMonth *LunarMonth) GetFirstJulianDay() float64
func (*LunarMonth) GetMonth ¶
func (lunarMonth *LunarMonth) GetMonth() int
func (*LunarMonth) GetYear ¶
func (lunarMonth *LunarMonth) GetYear() int
func (*LunarMonth) IsLeap ¶
func (lunarMonth *LunarMonth) IsLeap() bool
func (*LunarMonth) String ¶
func (lunarMonth *LunarMonth) String() string
type LunarTime ¶
type LunarTime struct {
// contains filtered or unexported fields
}
时辰
func NewLunarTime ¶
func (*LunarTime) GetChongDesc ¶
func (*LunarTime) GetChongGan ¶
func (*LunarTime) GetChongGanTie ¶
func (*LunarTime) GetChongShengXiao ¶
func (*LunarTime) GetGanIndex ¶
func (*LunarTime) GetNineStar ¶
func (*LunarTime) GetPositionCai ¶
func (*LunarTime) GetPositionCaiDesc ¶
func (*LunarTime) GetPositionFu ¶
func (*LunarTime) GetPositionFuBySect ¶
func (*LunarTime) GetPositionFuDesc ¶
func (*LunarTime) GetPositionFuDescBySect ¶
func (*LunarTime) GetPositionXi ¶
func (*LunarTime) GetPositionXiDesc ¶
func (*LunarTime) GetPositionYangGui ¶
func (*LunarTime) GetPositionYangGuiDesc ¶
func (*LunarTime) GetPositionYinGui ¶
func (*LunarTime) GetPositionYinGuiDesc ¶
func (*LunarTime) GetShengXiao ¶
func (*LunarTime) GetTianShen ¶
func (*LunarTime) GetTianShenLuck ¶
func (*LunarTime) GetTianShenType ¶
func (*LunarTime) GetZhiIndex ¶
type LunarYear ¶
type LunarYear struct {
// contains filtered or unexported fields
}
阴历年
func NewLunarYear ¶
func (*LunarYear) GetFenBing ¶
func (*LunarYear) GetGengTian ¶
func (*LunarYear) GetJieQiJulianDays ¶
func (*LunarYear) GetMonth ¶
func (lunarYear *LunarYear) GetMonth(lunarMonth int) *LunarMonth
func (*LunarYear) GetZhiShui ¶
func (*LunarYear) ToFullString ¶
type NineStar ¶
type NineStar struct {
// contains filtered or unexported fields
}
九星
func NewNineStar ¶
func (*NineStar) GetBaMenInQiMen ¶
func (*NineStar) GetLuckInQiMen ¶
func (*NineStar) GetLuckInXuanKong ¶
func (*NineStar) GetNameInBeiDou ¶
func (*NineStar) GetNameInQiMen ¶
func (*NineStar) GetNameInTaiYi ¶
func (*NineStar) GetNameInXuanKong ¶
func (*NineStar) GetPosition ¶
func (*NineStar) GetPositionDesc ¶
func (*NineStar) GetSongInTaiYi ¶
func (*NineStar) GetTypeInTaiYi ¶
func (*NineStar) GetYinYangInQiMen ¶
func (*NineStar) ToFullString ¶
type ShuJiu ¶
type ShuJiu struct {
// contains filtered or unexported fields
}
数九
func (*ShuJiu) ToFullString ¶
type Solar ¶
type Solar struct {
// contains filtered or unexported fields
}
阳历
func NewSolarFromDate ¶
func NewSolarFromJulianDay ¶
func (*Solar) GetCalendar ¶
func (*Solar) GetFestivals ¶
func (*Solar) GetJulianDay ¶
func (*Solar) GetOtherFestivals ¶
func (*Solar) GetWeekInChinese ¶
func (*Solar) GetXingZuo ¶
func (*Solar) GetXingzuo ¶
@Deprecated: 该方法已废弃,请使用GetXingZuo
func (*Solar) IsLeapYear ¶
func (*Solar) ToFullString ¶
type SolarHalfYear ¶
type SolarHalfYear struct {
// contains filtered or unexported fields
}
阳历半年
func NewSolarHalfYear ¶
func NewSolarHalfYear() *SolarHalfYear
func NewSolarHalfYearFromDate ¶
func NewSolarHalfYearFromDate(date time.Time) *SolarHalfYear
func NewSolarHalfYearFromYm ¶
func NewSolarHalfYearFromYm(year int, month int) *SolarHalfYear
func (*SolarHalfYear) GetIndex ¶
func (solarHalfYear *SolarHalfYear) GetIndex() int
func (*SolarHalfYear) GetMonth ¶
func (solarHalfYear *SolarHalfYear) GetMonth() int
func (*SolarHalfYear) GetMonths ¶
func (solarHalfYear *SolarHalfYear) GetMonths() *list.List
func (*SolarHalfYear) GetYear ¶
func (solarHalfYear *SolarHalfYear) GetYear() int
func (*SolarHalfYear) Next ¶
func (solarHalfYear *SolarHalfYear) Next(halfYears int) *SolarHalfYear
func (*SolarHalfYear) String ¶
func (solarHalfYear *SolarHalfYear) String() string
func (*SolarHalfYear) ToFullString ¶
func (solarHalfYear *SolarHalfYear) ToFullString() string
type SolarMonth ¶
type SolarMonth struct {
// contains filtered or unexported fields
}
阳历月
func NewSolarMonth ¶
func NewSolarMonth() *SolarMonth
func NewSolarMonthFromDate ¶
func NewSolarMonthFromDate(date time.Time) *SolarMonth
func NewSolarMonthFromYm ¶
func NewSolarMonthFromYm(year int, month int) *SolarMonth
func (*SolarMonth) GetDays ¶
func (solarMonth *SolarMonth) GetDays() *list.List
func (*SolarMonth) GetMonth ¶
func (solarMonth *SolarMonth) GetMonth() int
func (*SolarMonth) GetYear ¶
func (solarMonth *SolarMonth) GetYear() int
func (*SolarMonth) Next ¶
func (solarMonth *SolarMonth) Next(months int) *SolarMonth
func (*SolarMonth) String ¶
func (solarMonth *SolarMonth) String() string
func (*SolarMonth) ToFullString ¶
func (solarMonth *SolarMonth) ToFullString() string
type SolarSeason ¶
type SolarSeason struct {
// contains filtered or unexported fields
}
阳历季度
func NewSolarSeason ¶
func NewSolarSeason() *SolarSeason
func NewSolarSeasonFromDate ¶
func NewSolarSeasonFromDate(date time.Time) *SolarSeason
func NewSolarSeasonFromYm ¶
func NewSolarSeasonFromYm(year int, month int) *SolarSeason
func (*SolarSeason) GetIndex ¶
func (solarSeason *SolarSeason) GetIndex() int
func (*SolarSeason) GetMonth ¶
func (solarSeason *SolarSeason) GetMonth() int
func (*SolarSeason) GetMonths ¶
func (solarSeason *SolarSeason) GetMonths() *list.List
func (*SolarSeason) GetYear ¶
func (solarSeason *SolarSeason) GetYear() int
func (*SolarSeason) Next ¶
func (solarSeason *SolarSeason) Next(seasons int) *SolarSeason
func (*SolarSeason) String ¶
func (solarSeason *SolarSeason) String() string
func (*SolarSeason) ToFullString ¶
func (solarSeason *SolarSeason) ToFullString() string
type SolarWeek ¶
type SolarWeek struct {
// contains filtered or unexported fields
}
阳历周
func NewSolarWeek ¶
func NewSolarWeekFromYmd ¶
func (*SolarWeek) GetDaysInMonth ¶
func (*SolarWeek) GetFirstDay ¶
func (*SolarWeek) GetFirstDayInMonth ¶
func (*SolarWeek) ToFullString ¶
type SolarYear ¶
type SolarYear struct {
// contains filtered or unexported fields
}
阳历年
func NewSolarYear ¶
func NewSolarYear() *SolarYear