calendar

package
v1.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const J2000 = 2451545
View Source
const MONTH_IN_HALF_YEAR = 6
View Source
const MONTH_IN_SEASON = 3
View Source
const MONTH_IN_YEAR = 12

Variables

View Source
var BA_MEN_QI_MEN = []string{"休", "死", "伤", "杜", "", "开", "惊", "生", "景"}

BA_MEN_QI_MEN 八门(奇门遁甲)

View Source
var BIRTH_YEAR = -2697
View Source
var CHANG_SHENG = []string{"长生", "沐浴", "冠带", "临官", "帝旺", "衰", "病", "死", "墓", "绝", "胎", "养"}

CHANG_SHENG 长生十二神

View Source
var COLOR = []string{"白", "黒", "碧", "绿", "黄", "白", "赤", "白", "紫"}

COLOR 七色

View Source
var DEAD_YEAR = -543
View Source
var JIE_QI = []string{"冬至", "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪"}
View Source
var JIE_QI_IN_USE = []string{"DA_XUE", "冬至", "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "DONG_ZHI", "XIAO_HAN", "DA_HAN", "LI_CHUN", "YU_SHUI", "JING_ZHE"}
View Source
var LEAP_11 = []int{} /* 220 elements not displayed */
View Source
var LEAP_12 = []int{} /* 156 elements not displayed */
View Source
var LUCK_QI_MEN = []string{"大凶", "大凶", "小吉", "大吉", "大吉", "大吉", "小凶", "小吉", "小凶"}

LUCK_QI_MEN 吉凶(奇门遁甲)

View Source
var LUCK_XUAN_KONG = []string{"吉", "凶", "凶", "吉", "凶", "吉", "凶", "吉", "吉"}

LUCK_XUAN_KONG 吉凶(玄空风水)

View Source
var MONTH_ZHI = []string{"", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥", "子", "丑"}

MONTH_ZHI 月支,按正月起寅排列

View Source
var NAME_BEI_DOU = []string{"天枢", "天璇", "天玑", "天权", "玉衡", "开阳", "摇光", "洞明", "隐元"}

NAME_BEI_DOU 北斗九星

View Source
var NAME_QI_MEN = []string{"天蓬", "天芮", "天冲", "天辅", "天禽", "天心", "天柱", "天任", "天英"}

NAME_QI_MEN 奇门九星(奇门遁甲,也称天盘九星)

View Source
var NAME_TAI_YI = []string{"太乙", "摄提", "轩辕", "招摇", "天符", "青龙", "咸池", "太阴", "天乙"}

NAME_TAI_YI 太乙九神(太乙神数)

View Source
var NAME_XUAN_KONG = []string{"贪狼", "巨门", "禄存", "文曲", "廉贞", "武曲", "破军", "左辅", "右弼"}

NAME_XUAN_KONG 玄空九星(玄空风水)

View Source
var NUMBER = []string{"一", "二", "三", "四", "五", "六", "七", "八", "九"}

NUMBER 九数

View Source
var POSITION = []string{"坎", "坤", "震", "巽", "中", "乾", "兑", "艮", "离"}

POSITION 后天八卦方位

View Source
var SONG_TAI_YI = []string{"门中太乙明,星官号贪狼,赌彩财喜旺,婚姻大吉昌,出入无阻挡,参谒见贤良,此行三五里,黑衣别阴阳。", "门前见摄提,百事必忧疑,相生犹自可,相克祸必临,死门并相会,老妇哭悲啼,求谋并吉事,尽皆不相宜,只可藏隐遁,若动伤身疾。", "出入会轩辕,凡事必缠牵,相生全不美,相克更忧煎,远行多不利,博彩尽输钱,九天玄女法,句句不虚言。", "招摇号木星,当之事莫行,相克行人阻,阴人口舌迎,梦寐多惊惧,屋响斧自鸣,阴阳消息理,万法弗违情。", "五鬼为天符,当门阴女谋,相克无好事,行路阻中途,走失难寻觅,道逢有尼姑,此星当门值,万事有灾除。", "神光跃青龙,财气喜重重,投入有酒食,赌彩最兴隆,更逢相生旺,休言克破凶,见贵安营寨,万事总吉同。", "吾将为咸池,当之尽不宜,出入多不利,相克有灾情,赌彩全输尽,求财空手回,仙人真妙语,愚人莫与知,动用虚惊退,反复逆风吹。", "坐临太阴星,百祸不相侵,求谋悉成就,知交有觅寻,回风归来路,恐有殃伏起,密语中记取,慎乎莫轻行。", "迎来天乙星,相逢百事兴,运用和合庆,茶酒喜相迎,求谋并嫁娶,好合有天成,祸福如神验,吉凶甚分明。"}

SONG_TAI_YI 太乙九神歌诀(太乙神数)

View Source
var TYPE_TAI_YI = []string{"吉神", "凶神", "安神", "安神", "凶神", "吉神", "凶神", "吉神", "吉神"}

TYPE_TAI_YI 太乙九神对应类型

View Source
var WU_XING = []string{"水", "土", "木", "木", "土", "金", "金", "土", "火"}

WU_XING 五行

View Source
var YIN_YANG_QI_MEN = []string{"阳", "阴", "阳", "阳", "阳", "阴", "阴", "阳", "阴"}

YIN_YANG_QI_MEN 阴阳(奇门遁甲)

View Source
var YMC = []int{11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
View Source
var YUAN = []string{"下", "上", "中"}

YUAN 元

View Source
var YUN = []string{"七", "八", "九", "一", "二", "三", "四", "五", "六"}

YUN 运

Functions

func ListSolarFromBaZi added in v1.0.5

func ListSolarFromBaZi(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string) *list.List

func ListSolarFromBaZiBySect added in v1.0.24

func ListSolarFromBaZiBySect(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string, sect int) *list.List

func ListSolarFromBaZiBySectAndBaseYear added in v1.2.0

func ListSolarFromBaZiBySectAndBaseYear(yearGanZhi string, monthGanZhi string, dayGanZhi string, timeGanZhi string, sect int, baseYear int) *list.List

Types

type DaYun added in v1.0.9

type DaYun struct {
	// contains filtered or unexported fields
}

func NewDaYun added in v1.0.9

func NewDaYun(yun *Yun, index int) *DaYun

func (*DaYun) GetEndAge added in v1.0.9

func (daYun *DaYun) GetEndAge() int

func (*DaYun) GetEndYear added in v1.0.9

func (daYun *DaYun) GetEndYear() int

func (*DaYun) GetGanZhi added in v1.0.9

func (daYun *DaYun) GetGanZhi() string

GetGanZhi 获取干支

func (*DaYun) GetIndex added in v1.0.9

func (daYun *DaYun) GetIndex() int

func (*DaYun) GetLiuNian added in v1.0.9

func (daYun *DaYun) GetLiuNian() []*LiuNian

GetLiuNian 获取10轮流年

func (*DaYun) GetLiuNianBy added in v1.2.5

func (daYun *DaYun) GetLiuNianBy(n int) []*LiuNian

GetLiuNianBy 获取流年

func (*DaYun) GetLunar added in v1.0.9

func (daYun *DaYun) GetLunar() *Lunar

func (*DaYun) GetStartAge added in v1.0.9

func (daYun *DaYun) GetStartAge() int

func (*DaYun) GetStartYear added in v1.0.9

func (daYun *DaYun) GetStartYear() int

func (*DaYun) GetXiaoYun added in v1.0.9

func (daYun *DaYun) GetXiaoYun() []*XiaoYun

GetXiaoYun 获取10轮小运

func (*DaYun) GetXiaoYunBy added in v1.2.5

func (daYun *DaYun) GetXiaoYunBy(n int) []*XiaoYun

GetXiaoYunBy 获取小运

func (*DaYun) GetXun added in v1.0.19

func (daYun *DaYun) GetXun() string

GetXun 获取所在旬

func (*DaYun) GetXunKong added in v1.0.19

func (daYun *DaYun) GetXunKong() string

GetXunKong 获取旬空(空亡)

type EightChar added in v1.0.8

type EightChar struct {
	// contains filtered or unexported fields
}

EightChar 八字

func NewEightChar added in v1.0.8

func NewEightChar(lunar *Lunar) *EightChar

func (*EightChar) GetDay added in v1.0.8

func (eightChar *EightChar) GetDay() string

func (*EightChar) GetDayDiShi added in v1.0.8

func (eightChar *EightChar) GetDayDiShi() string

func (*EightChar) GetDayGan added in v1.0.8

func (eightChar *EightChar) GetDayGan() string

func (*EightChar) GetDayGanIndex added in v1.0.24

func (eightChar *EightChar) GetDayGanIndex() int

func (*EightChar) GetDayHideGan added in v1.0.8

func (eightChar *EightChar) GetDayHideGan() []string

func (*EightChar) GetDayNaYin added in v1.0.8

func (eightChar *EightChar) GetDayNaYin() string

func (*EightChar) GetDayShiShenGan added in v1.0.8

func (eightChar *EightChar) GetDayShiShenGan() string

func (*EightChar) GetDayShiShenZhi added in v1.0.8

func (eightChar *EightChar) GetDayShiShenZhi() *list.List

func (*EightChar) GetDayWuXing added in v1.0.8

func (eightChar *EightChar) GetDayWuXing() string

func (*EightChar) GetDayXun added in v1.0.19

func (eightChar *EightChar) GetDayXun() string

GetDayXun 获取日柱所在旬

func (*EightChar) GetDayXunKong added in v1.0.19

func (eightChar *EightChar) GetDayXunKong() string

GetDayXunKong 获取日柱旬空(空亡)

func (*EightChar) GetDayZhi added in v1.0.8

func (eightChar *EightChar) GetDayZhi() string

func (*EightChar) GetDayZhiIndex added in v1.0.24

func (eightChar *EightChar) GetDayZhiIndex() int

func (*EightChar) GetLunar added in v1.0.9

func (eightChar *EightChar) GetLunar() *Lunar

func (*EightChar) GetMingGong added in v1.0.8

func (eightChar *EightChar) GetMingGong() string

func (*EightChar) GetMingGongNaYin added in v1.0.8

func (eightChar *EightChar) GetMingGongNaYin() string

func (*EightChar) GetMonth added in v1.0.8

func (eightChar *EightChar) GetMonth() string

func (*EightChar) GetMonthDiShi added in v1.0.8

func (eightChar *EightChar) GetMonthDiShi() string

func (*EightChar) GetMonthGan added in v1.0.8

func (eightChar *EightChar) GetMonthGan() string

func (*EightChar) GetMonthHideGan added in v1.0.8

func (eightChar *EightChar) GetMonthHideGan() []string

func (*EightChar) GetMonthNaYin added in v1.0.8

func (eightChar *EightChar) GetMonthNaYin() string

func (*EightChar) GetMonthShiShenGan added in v1.0.8

func (eightChar *EightChar) GetMonthShiShenGan() string

func (*EightChar) GetMonthShiShenZhi added in v1.0.8

func (eightChar *EightChar) GetMonthShiShenZhi() *list.List

func (*EightChar) GetMonthWuXing added in v1.0.8

func (eightChar *EightChar) GetMonthWuXing() string

func (*EightChar) GetMonthXun added in v1.0.19

func (eightChar *EightChar) GetMonthXun() string

GetMonthXun 获取月柱所在旬

func (*EightChar) GetMonthXunKong added in v1.0.19

func (eightChar *EightChar) GetMonthXunKong() string

GetMonthXunKong 获取月柱旬空(空亡)

func (*EightChar) GetMonthZhi added in v1.0.8

func (eightChar *EightChar) GetMonthZhi() string

func (*EightChar) GetSect added in v1.0.24

func (eightChar *EightChar) GetSect() int

func (*EightChar) GetShenGong added in v1.0.8

func (eightChar *EightChar) GetShenGong() string

func (*EightChar) GetShenGongNaYin added in v1.0.8

func (eightChar *EightChar) GetShenGongNaYin() string

func (*EightChar) GetTaiXi added in v1.2.18

func (eightChar *EightChar) GetTaiXi() string

func (*EightChar) GetTaiXiNaYin added in v1.2.18

func (eightChar *EightChar) GetTaiXiNaYin() string

func (*EightChar) GetTaiYuan added in v1.0.8

func (eightChar *EightChar) GetTaiYuan() string

func (*EightChar) GetTaiYuanNaYin added in v1.0.8

func (eightChar *EightChar) GetTaiYuanNaYin() string

func (*EightChar) GetTime added in v1.0.8

func (eightChar *EightChar) GetTime() string

func (*EightChar) GetTimeDiShi added in v1.0.8

func (eightChar *EightChar) GetTimeDiShi() string

func (*EightChar) GetTimeGan added in v1.0.8

func (eightChar *EightChar) GetTimeGan() string

func (*EightChar) GetTimeHideGan added in v1.0.8

func (eightChar *EightChar) GetTimeHideGan() []string

func (*EightChar) GetTimeNaYin added in v1.0.8

func (eightChar *EightChar) GetTimeNaYin() string

func (*EightChar) GetTimeShiShenGan added in v1.0.8

func (eightChar *EightChar) GetTimeShiShenGan() string

func (*EightChar) GetTimeShiShenZhi added in v1.0.8

func (eightChar *EightChar) GetTimeShiShenZhi() *list.List

func (*EightChar) GetTimeWuXing added in v1.0.8

func (eightChar *EightChar) GetTimeWuXing() string

func (*EightChar) GetTimeXun added in v1.0.19

func (eightChar *EightChar) GetTimeXun() string

GetTimeXun 获取时柱所在旬

func (*EightChar) GetTimeXunKong added in v1.0.19

func (eightChar *EightChar) GetTimeXunKong() string

GetTimeXunKong 获取时柱旬空(空亡)

func (*EightChar) GetTimeZhi added in v1.0.8

func (eightChar *EightChar) GetTimeZhi() string

func (*EightChar) GetYear added in v1.0.8

func (eightChar *EightChar) GetYear() string

func (*EightChar) GetYearDiShi added in v1.0.8

func (eightChar *EightChar) GetYearDiShi() string

func (*EightChar) GetYearGan added in v1.0.8

func (eightChar *EightChar) GetYearGan() string

func (*EightChar) GetYearHideGan added in v1.0.8

func (eightChar *EightChar) GetYearHideGan() []string

func (*EightChar) GetYearNaYin added in v1.0.8

func (eightChar *EightChar) GetYearNaYin() string

func (*EightChar) GetYearShiShenGan added in v1.0.8

func (eightChar *EightChar) GetYearShiShenGan() string

func (*EightChar) GetYearShiShenZhi added in v1.0.8

func (eightChar *EightChar) GetYearShiShenZhi() *list.List

func (*EightChar) GetYearWuXing added in v1.0.8

func (eightChar *EightChar) GetYearWuXing() string

func (*EightChar) GetYearXun added in v1.0.19

func (eightChar *EightChar) GetYearXun() string

GetYearXun 获取年柱所在旬

func (*EightChar) GetYearXunKong added in v1.0.19

func (eightChar *EightChar) GetYearXunKong() string

GetYearXunKong 获取年柱旬空(空亡)

func (*EightChar) GetYearZhi added in v1.0.8

func (eightChar *EightChar) GetYearZhi() string

func (*EightChar) GetYun added in v1.0.9

func (eightChar *EightChar) GetYun(gender int) *Yun

GetYun 获取运

func (*EightChar) GetYunBySect added in v1.2.15

func (eightChar *EightChar) GetYunBySect(gender int, sect int) *Yun

GetYunBySect 获取运

func (*EightChar) SetSect added in v1.0.24

func (eightChar *EightChar) SetSect(sect int)

func (*EightChar) String added in v1.0.8

func (eightChar *EightChar) String() string

type Foto added in v1.2.8

type Foto struct {
	// contains filtered or unexported fields
}

Foto 佛历

func NewFoto added in v1.2.8

func NewFoto(year int, month int, day int, hour int, minute int, second int) *Foto

func NewFotoFromLunar added in v1.2.8

func NewFotoFromLunar(lunar *Lunar) *Foto

func NewFotoFromYmd added in v1.2.8

func NewFotoFromYmd(year int, month int, day int) *Foto

func (*Foto) GetAnimal added in v1.2.13

func (f *Foto) GetAnimal() string

func (*Foto) GetDay added in v1.2.8

func (f *Foto) GetDay() int

func (*Foto) GetDayInChinese added in v1.2.8

func (f *Foto) GetDayInChinese() string

func (*Foto) GetFestivals added in v1.2.8

func (f *Foto) GetFestivals() *list.List

func (*Foto) GetGong added in v1.2.13

func (f *Foto) GetGong() string

func (*Foto) GetLunar added in v1.2.8

func (f *Foto) GetLunar() *Lunar

func (*Foto) GetMonth added in v1.2.8

func (f *Foto) GetMonth() int

func (*Foto) GetMonthInChinese added in v1.2.8

func (f *Foto) GetMonthInChinese() string

func (*Foto) GetOtherFestivals added in v1.3.3

func (f *Foto) GetOtherFestivals() *list.List

func (*Foto) GetShou added in v1.2.13

func (f *Foto) GetShou() string

func (*Foto) GetXiu added in v1.2.13

func (f *Foto) GetXiu() string

func (*Foto) GetXiuLuck added in v1.2.13

func (f *Foto) GetXiuLuck() string

func (*Foto) GetXiuSong added in v1.2.13

func (f *Foto) GetXiuSong() string

func (*Foto) GetYear added in v1.2.8

func (f *Foto) GetYear() int

func (*Foto) GetYearInChinese added in v1.2.8

func (f *Foto) GetYearInChinese() string

func (*Foto) GetZheng added in v1.2.13

func (f *Foto) GetZheng() string

func (*Foto) IsDayYangGong added in v1.2.8

func (f *Foto) IsDayYangGong() bool

func (*Foto) IsDayZhaiGuanYin added in v1.2.8

func (f *Foto) IsDayZhaiGuanYin() bool

func (*Foto) IsDayZhaiShuoWang added in v1.2.8

func (f *Foto) IsDayZhaiShuoWang() bool

func (*Foto) IsDayZhaiSix added in v1.2.8

func (f *Foto) IsDayZhaiSix() bool

func (*Foto) IsDayZhaiTen added in v1.2.8

func (f *Foto) IsDayZhaiTen() bool

func (*Foto) IsMonthZhai added in v1.2.8

func (f *Foto) IsMonthZhai() bool

func (*Foto) String added in v1.2.8

func (f *Foto) String() string

func (*Foto) ToFullString added in v1.2.8

func (f *Foto) ToFullString() string

func (*Foto) ToString added in v1.2.8

func (f *Foto) ToString() string

type FotoFestival added in v1.2.8

type FotoFestival struct {
	// contains filtered or unexported fields
}

FotoFestival 佛历因果犯忌

func NewFotoFestival added in v1.2.8

func NewFotoFestival(name string, result string, everyMonth bool, remark string) *FotoFestival

func (*FotoFestival) GetName added in v1.2.8

func (f *FotoFestival) GetName() string

func (*FotoFestival) GetRemark added in v1.2.8

func (f *FotoFestival) GetRemark() string

func (*FotoFestival) GetResult added in v1.2.8

func (f *FotoFestival) GetResult() string

func (*FotoFestival) IsEveryMonth added in v1.2.8

func (f *FotoFestival) IsEveryMonth() bool

func (*FotoFestival) String added in v1.2.8

func (f *FotoFestival) String() string

func (*FotoFestival) ToFullString added in v1.2.11

func (f *FotoFestival) ToFullString() string

func (*FotoFestival) ToString added in v1.2.8

func (f *FotoFestival) ToString() string

type Fu added in v1.0.25

type Fu struct {
	// contains filtered or unexported fields
}

Fu 伏

func NewFu added in v1.0.25

func NewFu(name string, index int) *Fu

func (*Fu) GetIndex added in v1.0.25

func (fu *Fu) GetIndex() int

func (*Fu) GetName added in v1.0.25

func (fu *Fu) GetName() string

func (*Fu) SetIndex added in v1.0.25

func (fu *Fu) SetIndex(index int)

func (*Fu) SetName added in v1.0.25

func (fu *Fu) SetName(name string)

func (*Fu) String added in v1.0.25

func (fu *Fu) String() string

func (*Fu) ToFullString added in v1.0.25

func (fu *Fu) ToFullString() string

func (*Fu) ToString added in v1.0.25

func (fu *Fu) ToString() string

type JieQi added in v1.0.9

type JieQi struct {
	// contains filtered or unexported fields
}

JieQi 节气

func NewJieQi added in v1.0.9

func NewJieQi(name string, solar *Solar) *JieQi

func (*JieQi) GetName added in v1.0.9

func (jieQi *JieQi) GetName() string

GetName 获取名称

func (*JieQi) GetSolar added in v1.0.9

func (jieQi *JieQi) GetSolar() *Solar

GetSolar 获取阳历日期

func (*JieQi) IsJie added in v1.0.11

func (jieQi *JieQi) IsJie() bool

IsJie 是否节令

func (*JieQi) IsQi added in v1.0.11

func (jieQi *JieQi) IsQi() bool

IsQi 是否气令

func (*JieQi) SetName added in v1.0.9

func (jieQi *JieQi) SetName(name string)

SetName 设置名称

func (*JieQi) SetSolar added in v1.0.9

func (jieQi *JieQi) SetSolar(solar *Solar)

SetSolar 设置阳历日期

func (*JieQi) String added in v1.0.11

func (jieQi *JieQi) String() string

type LiuNian added in v1.0.9

type LiuNian struct {
	// contains filtered or unexported fields
}

LiuNian 流年

func NewLiuNian added in v1.0.9

func NewLiuNian(daYun *DaYun, index int) *LiuNian

func (*LiuNian) GetAge added in v1.0.9

func (liuNian *LiuNian) GetAge() int

func (*LiuNian) GetGanZhi added in v1.0.9

func (liuNian *LiuNian) GetGanZhi() string

GetGanZhi 获取干支

func (*LiuNian) GetIndex added in v1.0.9

func (liuNian *LiuNian) GetIndex() int

func (*LiuNian) GetLiuYue added in v1.0.9

func (liuNian *LiuNian) GetLiuYue() []*LiuYue

func (*LiuNian) GetXun added in v1.0.19

func (liuNian *LiuNian) GetXun() string

GetXun 获取所在旬

func (*LiuNian) GetXunKong added in v1.0.19

func (liuNian *LiuNian) GetXunKong() string

GetXunKong 获取旬空(空亡)

func (*LiuNian) GetYear added in v1.0.9

func (liuNian *LiuNian) GetYear() int

type LiuYue added in v1.0.9

type LiuYue struct {
	// contains filtered or unexported fields
}

LiuYue 流月

func NewLiuYue added in v1.0.9

func NewLiuYue(liuNian *LiuNian, index int) *LiuYue

func (*LiuYue) GetGanZhi added in v1.0.9

func (liuYue *LiuYue) GetGanZhi() string

GetGanZhi 获取干支 <p> 《五虎遁》 甲己之年丙作首, 乙庚之年戊为头, 丙辛之年寻庚上, 丁壬壬寅顺水流, 若问戊癸何处走, 甲寅之上好追求。

func (*LiuYue) GetIndex added in v1.0.9

func (liuYue *LiuYue) GetIndex() int

func (*LiuYue) GetMonthInChinese added in v1.0.9

func (liuYue *LiuYue) GetMonthInChinese() string

GetMonthInChinese 获取中文的月

func (*LiuYue) GetXun added in v1.0.19

func (liuYue *LiuYue) GetXun() string

GetXun 获取所在旬

func (*LiuYue) GetXunKong added in v1.0.19

func (liuYue *LiuYue) GetXunKong() string

GetXunKong 获取旬空(空亡)

type Lunar

type Lunar struct {
	// contains filtered or unexported fields
}

Lunar 阴历

func NewLunar

func NewLunar(lunarYear int, lunarMonth int, lunarDay int, hour int, minute int, second int) *Lunar

func NewLunarFromDate

func NewLunarFromDate(date time.Time) *Lunar

func NewLunarFromSolar added in v1.3.0

func NewLunarFromSolar(solar *Solar) *Lunar

func NewLunarFromYmd

func NewLunarFromYmd(lunarYear int, lunarMonth int, lunarDay int) *Lunar

func (*Lunar) GetAnimal

func (lunar *Lunar) GetAnimal() string

func (*Lunar) GetBaZi

func (lunar *Lunar) GetBaZi() [4]string

GetBaZi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiNaYin

func (lunar *Lunar) GetBaZiNaYin() [4]string

GetBaZiNaYin @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenDayZhi added in v1.0.7

func (lunar *Lunar) GetBaZiShiShenDayZhi() *list.List

GetBaZiShiShenDayZhi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenGan

func (lunar *Lunar) GetBaZiShiShenGan() [4]string

GetBaZiShiShenGan @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenMonthZhi added in v1.0.7

func (lunar *Lunar) GetBaZiShiShenMonthZhi() *list.List

GetBaZiShiShenMonthZhi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenTimeZhi added in v1.0.7

func (lunar *Lunar) GetBaZiShiShenTimeZhi() *list.List

GetBaZiShiShenTimeZhi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenYearZhi added in v1.0.7

func (lunar *Lunar) GetBaZiShiShenYearZhi() *list.List

GetBaZiShiShenYearZhi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiShiShenZhi

func (lunar *Lunar) GetBaZiShiShenZhi() [4]string

GetBaZiShiShenZhi @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetBaZiWuXing

func (lunar *Lunar) GetBaZiWuXing() [4]string

GetBaZiWuXing @Deprecated: 该方法已废弃,请使用GetEightChar

func (*Lunar) GetChong

func (lunar *Lunar) GetChong() string

GetChong @Deprecated: 该方法已废弃,请使用GetDayChong

func (*Lunar) GetChongDesc

func (lunar *Lunar) GetChongDesc() string

GetChongDesc @Deprecated: 该方法已废弃,请使用GetDayChongDesc

func (*Lunar) GetChongGan

func (lunar *Lunar) GetChongGan() string

GetChongGan @Deprecated: 该方法已废弃,请使用GetDayChongGan

func (*Lunar) GetChongGanTie

func (lunar *Lunar) GetChongGanTie() string

GetChongGanTie @Deprecated: 该方法已废弃,请使用GetDayChongGanTie

func (*Lunar) GetChongShengXiao

func (lunar *Lunar) GetChongShengXiao() string

GetChongShengXiao @Deprecated: 该方法已废弃,请使用GetDayChongShengXiao

func (*Lunar) GetCurrentJie added in v1.0.11

func (lunar *Lunar) GetCurrentJie() *JieQi

GetCurrentJie 获取当天节令对象,如果无节令,返回nil

func (*Lunar) GetCurrentJieQi added in v1.0.11

func (lunar *Lunar) GetCurrentJieQi() *JieQi

GetCurrentJieQi 获取当天节气对象,如果无节气,返回nil

func (*Lunar) GetCurrentQi added in v1.0.11

func (lunar *Lunar) GetCurrentQi() *JieQi

GetCurrentQi 获取当天气令对象,如果无气令,返回nil

func (*Lunar) GetDay

func (lunar *Lunar) GetDay() int

func (*Lunar) GetDayChong

func (lunar *Lunar) GetDayChong() string

func (*Lunar) GetDayChongDesc

func (lunar *Lunar) GetDayChongDesc() string

func (*Lunar) GetDayChongGan

func (lunar *Lunar) GetDayChongGan() string

func (*Lunar) GetDayChongGanTie

func (lunar *Lunar) GetDayChongGanTie() string

func (*Lunar) GetDayChongShengXiao

func (lunar *Lunar) GetDayChongShengXiao() string

func (*Lunar) GetDayGan

func (lunar *Lunar) GetDayGan() string

func (*Lunar) GetDayGanExact

func (lunar *Lunar) GetDayGanExact() string

func (*Lunar) GetDayGanExact2 added in v1.0.24

func (lunar *Lunar) GetDayGanExact2() string

func (*Lunar) GetDayGanIndex added in v1.0.25

func (lunar *Lunar) GetDayGanIndex() int

func (*Lunar) GetDayGanIndexExact added in v1.0.8

func (lunar *Lunar) GetDayGanIndexExact() int

func (*Lunar) GetDayGanIndexExact2 added in v1.0.24

func (lunar *Lunar) GetDayGanIndexExact2() int

func (*Lunar) GetDayInChinese

func (lunar *Lunar) GetDayInChinese() string

func (*Lunar) GetDayInGanZhi

func (lunar *Lunar) GetDayInGanZhi() string

func (*Lunar) GetDayInGanZhiExact

func (lunar *Lunar) GetDayInGanZhiExact() string

func (*Lunar) GetDayInGanZhiExact2 added in v1.0.24

func (lunar *Lunar) GetDayInGanZhiExact2() string

func (*Lunar) GetDayJi

func (lunar *Lunar) GetDayJi() *list.List

func (*Lunar) GetDayJiBySect added in v1.2.16

func (lunar *Lunar) GetDayJiBySect(sect int) *list.List

func (*Lunar) GetDayJiShen

func (lunar *Lunar) GetDayJiShen() *list.List

func (*Lunar) GetDayLu added in v1.2.6

func (lunar *Lunar) GetDayLu() string

GetDayLu 获取日禄

func (*Lunar) GetDayNaYin

func (lunar *Lunar) GetDayNaYin() string

func (*Lunar) GetDayNineStar added in v1.0.2

func (lunar *Lunar) GetDayNineStar() *NineStar

func (*Lunar) GetDayPositionCai added in v1.0.3

func (lunar *Lunar) GetDayPositionCai() string

func (*Lunar) GetDayPositionCaiDesc added in v1.0.3

func (lunar *Lunar) GetDayPositionCaiDesc() string

func (*Lunar) GetDayPositionFu added in v1.0.3

func (lunar *Lunar) GetDayPositionFu() string

func (*Lunar) GetDayPositionFuBySect added in v1.2.9

func (lunar *Lunar) GetDayPositionFuBySect(sect int) string

func (*Lunar) GetDayPositionFuDesc added in v1.0.3

func (lunar *Lunar) GetDayPositionFuDesc() string

func (*Lunar) GetDayPositionFuDescBySect added in v1.2.9

func (lunar *Lunar) GetDayPositionFuDescBySect(sect int) string

func (*Lunar) GetDayPositionTai

func (lunar *Lunar) GetDayPositionTai() string

func (*Lunar) GetDayPositionTaiSui added in v1.2.13

func (lunar *Lunar) GetDayPositionTaiSui() string

func (*Lunar) GetDayPositionTaiSuiBySect added in v1.2.13

func (lunar *Lunar) GetDayPositionTaiSuiBySect(sect int) string

func (*Lunar) GetDayPositionTaiSuiDesc added in v1.2.13

func (lunar *Lunar) GetDayPositionTaiSuiDesc() string

func (*Lunar) GetDayPositionTaiSuiDescBySect added in v1.2.13

func (lunar *Lunar) GetDayPositionTaiSuiDescBySect(sect int) string

func (*Lunar) GetDayPositionXi added in v1.0.3

func (lunar *Lunar) GetDayPositionXi() string

func (*Lunar) GetDayPositionXiDesc added in v1.0.3

func (lunar *Lunar) GetDayPositionXiDesc() string

func (*Lunar) GetDayPositionYangGui added in v1.0.3

func (lunar *Lunar) GetDayPositionYangGui() string

func (*Lunar) GetDayPositionYangGuiDesc added in v1.0.3

func (lunar *Lunar) GetDayPositionYangGuiDesc() string

func (*Lunar) GetDayPositionYinGui added in v1.0.3

func (lunar *Lunar) GetDayPositionYinGui() string

func (*Lunar) GetDayPositionYinGuiDesc added in v1.0.3

func (lunar *Lunar) GetDayPositionYinGuiDesc() string

func (*Lunar) GetDaySha

func (lunar *Lunar) GetDaySha() string

func (*Lunar) GetDayShengXiao

func (lunar *Lunar) GetDayShengXiao() string

func (*Lunar) GetDayTianShen

func (lunar *Lunar) GetDayTianShen() string

func (*Lunar) GetDayTianShenLuck

func (lunar *Lunar) GetDayTianShenLuck() string

func (*Lunar) GetDayTianShenType

func (lunar *Lunar) GetDayTianShenType() string

func (*Lunar) GetDayXiongSha

func (lunar *Lunar) GetDayXiongSha() *list.List

func (*Lunar) GetDayXun added in v1.0.19

func (lunar *Lunar) GetDayXun() string

GetDayXun 获取日所在旬(以节交接当天起算)

func (*Lunar) GetDayXunExact added in v1.0.19

func (lunar *Lunar) GetDayXunExact() string

GetDayXunExact 获取日所在旬(晚子时日柱算明天)

func (*Lunar) GetDayXunExact2 added in v1.0.24

func (lunar *Lunar) GetDayXunExact2() string

GetDayXunExact2 获取日所在旬(晚子时日柱算当天)

func (*Lunar) GetDayXunKong added in v1.0.19

func (lunar *Lunar) GetDayXunKong() string

GetDayXunKong 获取值日空亡

func (*Lunar) GetDayXunKongExact added in v1.0.19

func (lunar *Lunar) GetDayXunKongExact() string

GetDayXunKongExact 获取值日空亡(晚子时日柱算明天)

func (*Lunar) GetDayXunKongExact2 added in v1.0.24

func (lunar *Lunar) GetDayXunKongExact2() string

GetDayXunKongExact2 获取值日空亡(晚子时日柱算当天)

func (*Lunar) GetDayYi

func (lunar *Lunar) GetDayYi() *list.List

func (*Lunar) GetDayYiBySect added in v1.2.16

func (lunar *Lunar) GetDayYiBySect(sect int) *list.List

func (*Lunar) GetDayZhi

func (lunar *Lunar) GetDayZhi() string

func (*Lunar) GetDayZhiExact

func (lunar *Lunar) GetDayZhiExact() string

func (*Lunar) GetDayZhiExact2 added in v1.0.24

func (lunar *Lunar) GetDayZhiExact2() string

func (*Lunar) GetDayZhiIndex added in v1.0.25

func (lunar *Lunar) GetDayZhiIndex() int

func (*Lunar) GetDayZhiIndexExact added in v1.0.8

func (lunar *Lunar) GetDayZhiIndexExact() int

func (*Lunar) GetDayZhiIndexExact2 added in v1.0.24

func (lunar *Lunar) GetDayZhiIndexExact2() int

func (*Lunar) GetEightChar added in v1.0.8

func (lunar *Lunar) GetEightChar() *EightChar

func (*Lunar) GetFestivals

func (lunar *Lunar) GetFestivals() *list.List

func (*Lunar) GetFoto added in v1.2.8

func (lunar *Lunar) GetFoto() *Foto

GetFoto 获取佛历

func (*Lunar) GetFu added in v1.0.25

func (lunar *Lunar) GetFu() *Fu

GetFu 获取三伏,如果不是三伏天,返回nil

func (*Lunar) GetGan

func (lunar *Lunar) GetGan() string

GetGan @Deprecated: 该方法已废弃,请使用GetYearGan

func (*Lunar) GetGong

func (lunar *Lunar) GetGong() string

func (*Lunar) GetHou added in v1.2.13

func (lunar *Lunar) GetHou() string

GetHou 获取候

func (*Lunar) GetHour

func (lunar *Lunar) GetHour() int

func (*Lunar) GetJie

func (lunar *Lunar) GetJie() string

func (*Lunar) GetJieQi added in v1.0.11

func (lunar *Lunar) GetJieQi() string

GetJieQi 获取节气名称,如果无节气,返回空字符串

func (*Lunar) GetJieQiList added in v1.0.3

func (lunar *Lunar) GetJieQiList() *list.List

func (*Lunar) GetJieQiTable

func (lunar *Lunar) GetJieQiTable() map[string]*Solar

func (*Lunar) GetLiuYao added in v1.0.26

func (lunar *Lunar) GetLiuYao() string

GetLiuYao 获取六曜

func (*Lunar) GetMinute

func (lunar *Lunar) GetMinute() int

func (*Lunar) GetMonth

func (lunar *Lunar) GetMonth() int

func (*Lunar) GetMonthGan

func (lunar *Lunar) GetMonthGan() string

func (*Lunar) GetMonthGanExact

func (lunar *Lunar) GetMonthGanExact() string

func (*Lunar) GetMonthGanIndex added in v1.0.25

func (lunar *Lunar) GetMonthGanIndex() int

func (*Lunar) GetMonthGanIndexExact added in v1.0.8

func (lunar *Lunar) GetMonthGanIndexExact() int

func (*Lunar) GetMonthInChinese

func (lunar *Lunar) GetMonthInChinese() string

func (*Lunar) GetMonthInGanZhi

func (lunar *Lunar) GetMonthInGanZhi() string

func (*Lunar) GetMonthInGanZhiExact

func (lunar *Lunar) GetMonthInGanZhiExact() string

func (*Lunar) GetMonthNaYin

func (lunar *Lunar) GetMonthNaYin() string

func (*Lunar) GetMonthNineStar added in v1.0.2

func (lunar *Lunar) GetMonthNineStar() *NineStar

func (*Lunar) GetMonthNineStarBySect added in v1.2.13

func (lunar *Lunar) GetMonthNineStarBySect(sect int) *NineStar

func (*Lunar) GetMonthPositionTai

func (lunar *Lunar) GetMonthPositionTai() string

func (*Lunar) GetMonthPositionTaiSui added in v1.2.13

func (lunar *Lunar) GetMonthPositionTaiSui() string

func (*Lunar) GetMonthPositionTaiSuiBySect added in v1.2.13

func (lunar *Lunar) GetMonthPositionTaiSuiBySect(sect int) string

func (*Lunar) GetMonthPositionTaiSuiDesc added in v1.2.13

func (lunar *Lunar) GetMonthPositionTaiSuiDesc() string

func (*Lunar) GetMonthPositionTaiSuiDescBySect added in v1.2.13

func (lunar *Lunar) GetMonthPositionTaiSuiDescBySect(sect int) string

func (*Lunar) GetMonthShengXiao

func (lunar *Lunar) GetMonthShengXiao() string

func (*Lunar) GetMonthXun added in v1.0.19

func (lunar *Lunar) GetMonthXun() string

GetMonthXun 获取月所在旬(以节交接当天起算)

func (*Lunar) GetMonthXunExact added in v1.0.19

func (lunar *Lunar) GetMonthXunExact() string

GetMonthXunExact 获取月所在旬(以节交接时刻起算)

func (*Lunar) GetMonthXunKong added in v1.0.19

func (lunar *Lunar) GetMonthXunKong() string

GetMonthXunKong 获取值月空亡(以节交接当天起算)

func (*Lunar) GetMonthXunKongExact added in v1.0.19

func (lunar *Lunar) GetMonthXunKongExact() string

GetMonthXunKongExact 获取值月空亡(以节交接时刻起算)

func (*Lunar) GetMonthZhi

func (lunar *Lunar) GetMonthZhi() string

func (*Lunar) GetMonthZhiExact

func (lunar *Lunar) GetMonthZhiExact() string

func (*Lunar) GetMonthZhiIndex added in v1.0.25

func (lunar *Lunar) GetMonthZhiIndex() int

func (*Lunar) GetMonthZhiIndexExact added in v1.0.8

func (lunar *Lunar) GetMonthZhiIndexExact() int

func (*Lunar) GetNextJie added in v1.0.9

func (lunar *Lunar) GetNextJie() *JieQi

GetNextJie 获取下一节令(顺推的第一个节令)

func (*Lunar) GetNextJieByWholeDay added in v1.2.13

func (lunar *Lunar) GetNextJieByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetNextJieQi added in v1.0.9

func (lunar *Lunar) GetNextJieQi() *JieQi

GetNextJieQi 获取下一节气(顺推的第一个节气)

func (*Lunar) GetNextJieQiByWholeDay added in v1.2.13

func (lunar *Lunar) GetNextJieQiByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetNextQi added in v1.0.11

func (lunar *Lunar) GetNextQi() *JieQi

GetNextQi 获取下一气令(顺推的第一个气令)

func (*Lunar) GetNextQiByWholeDay added in v1.2.13

func (lunar *Lunar) GetNextQiByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetOtherFestivals

func (lunar *Lunar) GetOtherFestivals() *list.List

func (*Lunar) GetPengZuGan

func (lunar *Lunar) GetPengZuGan() string

func (*Lunar) GetPengZuZhi

func (lunar *Lunar) GetPengZuZhi() string

func (*Lunar) GetPositionCai

func (lunar *Lunar) GetPositionCai() string

GetPositionCai @Deprecated: 该方法已废弃,请使用GetDayPositionCai

func (*Lunar) GetPositionCaiDesc

func (lunar *Lunar) GetPositionCaiDesc() string

GetPositionCaiDesc @Deprecated: 该方法已废弃,请使用GetDayPositionCaiDesc

func (*Lunar) GetPositionFu

func (lunar *Lunar) GetPositionFu() string

GetPositionFu @Deprecated: 该方法已废弃,请使用GetDayPositionFu

func (*Lunar) GetPositionFuDesc

func (lunar *Lunar) GetPositionFuDesc() string

GetPositionFuDesc @Deprecated: 该方法已废弃,请使用GetDayPositionFuDesc

func (*Lunar) GetPositionXi

func (lunar *Lunar) GetPositionXi() string

GetPositionXi @Deprecated: 该方法已废弃,请使用GetDayPositionXi

func (*Lunar) GetPositionXiDesc

func (lunar *Lunar) GetPositionXiDesc() string

GetPositionXiDesc @Deprecated: 该方法已废弃,请使用GetDayPositionXiDesc

func (*Lunar) GetPositionYangGui

func (lunar *Lunar) GetPositionYangGui() string

GetPositionYangGui @Deprecated: 该方法已废弃,请使用GetDayPositionYangGui

func (*Lunar) GetPositionYangGuiDesc

func (lunar *Lunar) GetPositionYangGuiDesc() string

GetPositionYangGuiDesc @Deprecated: 该方法已废弃,请使用GetDayPositionYangGuiDesc

func (*Lunar) GetPositionYinGui

func (lunar *Lunar) GetPositionYinGui() string

GetPositionYinGui @Deprecated: 该方法已废弃,请使用GetDayPositionYinGui

func (*Lunar) GetPositionYinGuiDesc

func (lunar *Lunar) GetPositionYinGuiDesc() string

GetPositionYinGuiDesc @Deprecated: 该方法已废弃,请使用GetDayPositionYinGuiDesc

func (*Lunar) GetPrevJie added in v1.0.9

func (lunar *Lunar) GetPrevJie() *JieQi

GetPrevJie 获取上一节令(逆推的第一个节令)

func (*Lunar) GetPrevJieByWholeDay added in v1.2.13

func (lunar *Lunar) GetPrevJieByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetPrevJieQi added in v1.0.9

func (lunar *Lunar) GetPrevJieQi() *JieQi

GetPrevJieQi 获取上一节气(逆推的第一个节气)

func (*Lunar) GetPrevJieQiByWholeDay added in v1.2.13

func (lunar *Lunar) GetPrevJieQiByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetPrevQi added in v1.0.11

func (lunar *Lunar) GetPrevQi() *JieQi

GetPrevQi 获取上一气令(逆推的第一个气令)

func (*Lunar) GetPrevQiByWholeDay added in v1.2.13

func (lunar *Lunar) GetPrevQiByWholeDay(wholeDay bool) *JieQi

func (*Lunar) GetQi

func (lunar *Lunar) GetQi() string

func (*Lunar) GetSeason

func (lunar *Lunar) GetSeason() string

func (*Lunar) GetSecond

func (lunar *Lunar) GetSecond() int

func (*Lunar) GetSha

func (lunar *Lunar) GetSha() string

GetSha @Deprecated: 该方法已废弃,请使用GetDaySha

func (*Lunar) GetShengxiao

func (lunar *Lunar) GetShengxiao() string

GetShengxiao @Deprecated: 该方法已废弃,请使用GetYearShengXiao

func (*Lunar) GetShou

func (lunar *Lunar) GetShou() string

func (*Lunar) GetShuJiu added in v1.0.25

func (lunar *Lunar) GetShuJiu() *ShuJiu

GetShuJiu 获取数九,如果不是数九天,返回nil

func (*Lunar) GetSolar

func (lunar *Lunar) GetSolar() *Solar

func (*Lunar) GetTao added in v1.2.11

func (lunar *Lunar) GetTao() *Tao

GetTao 获取道历

func (*Lunar) GetTime added in v1.2.6

func (lunar *Lunar) GetTime() *LunarTime

GetTime 获取时辰

func (*Lunar) GetTimeChong

func (lunar *Lunar) GetTimeChong() string

func (*Lunar) GetTimeChongDesc

func (lunar *Lunar) GetTimeChongDesc() string

func (*Lunar) GetTimeChongGan

func (lunar *Lunar) GetTimeChongGan() string

func (*Lunar) GetTimeChongGanTie

func (lunar *Lunar) GetTimeChongGanTie() string

func (*Lunar) GetTimeChongShengXiao

func (lunar *Lunar) GetTimeChongShengXiao() string

func (*Lunar) GetTimeGan

func (lunar *Lunar) GetTimeGan() string

func (*Lunar) GetTimeGanIndex added in v1.0.8

func (lunar *Lunar) GetTimeGanIndex() int

func (*Lunar) GetTimeInGanZhi

func (lunar *Lunar) GetTimeInGanZhi() string

func (*Lunar) GetTimeJi

func (lunar *Lunar) GetTimeJi() *list.List

func (*Lunar) GetTimeNaYin

func (lunar *Lunar) GetTimeNaYin() string

func (*Lunar) GetTimeNineStar added in v1.0.2

func (lunar *Lunar) GetTimeNineStar() *NineStar

func (*Lunar) GetTimePositionCai added in v1.0.3

func (lunar *Lunar) GetTimePositionCai() string

func (*Lunar) GetTimePositionCaiDesc added in v1.0.3

func (lunar *Lunar) GetTimePositionCaiDesc() string

func (*Lunar) GetTimePositionFu added in v1.0.3

func (lunar *Lunar) GetTimePositionFu() string

func (*Lunar) GetTimePositionFuDesc added in v1.0.3

func (lunar *Lunar) GetTimePositionFuDesc() string

func (*Lunar) GetTimePositionXi added in v1.0.3

func (lunar *Lunar) GetTimePositionXi() string

func (*Lunar) GetTimePositionXiDesc added in v1.0.3

func (lunar *Lunar) GetTimePositionXiDesc() string

func (*Lunar) GetTimePositionYangGui added in v1.0.3

func (lunar *Lunar) GetTimePositionYangGui() string

func (*Lunar) GetTimePositionYangGuiDesc added in v1.0.3

func (lunar *Lunar) GetTimePositionYangGuiDesc() string

func (*Lunar) GetTimePositionYinGui added in v1.0.3

func (lunar *Lunar) GetTimePositionYinGui() string

func (*Lunar) GetTimePositionYinGuiDesc added in v1.0.3

func (lunar *Lunar) GetTimePositionYinGuiDesc() string

func (*Lunar) GetTimeSha

func (lunar *Lunar) GetTimeSha() string

func (*Lunar) GetTimeShengXiao

func (lunar *Lunar) GetTimeShengXiao() string

func (*Lunar) GetTimeTianShen

func (lunar *Lunar) GetTimeTianShen() string

func (*Lunar) GetTimeTianShenLuck

func (lunar *Lunar) GetTimeTianShenLuck() string

func (*Lunar) GetTimeTianShenType

func (lunar *Lunar) GetTimeTianShenType() string

func (*Lunar) GetTimeXun added in v1.0.19

func (lunar *Lunar) GetTimeXun() string

GetTimeXun 获取时辰所在旬

func (*Lunar) GetTimeXunKong added in v1.0.19

func (lunar *Lunar) GetTimeXunKong() string

GetTimeXunKong 获取值时空亡

func (*Lunar) GetTimeYi

func (lunar *Lunar) GetTimeYi() *list.List

func (*Lunar) GetTimeZhi

func (lunar *Lunar) GetTimeZhi() string

func (*Lunar) GetTimeZhiIndex added in v1.0.8

func (lunar *Lunar) GetTimeZhiIndex() int

func (*Lunar) GetTimes added in v1.2.6

func (lunar *Lunar) GetTimes() []*LunarTime

GetTimes 获取当天的时辰列表

func (*Lunar) GetWeek

func (lunar *Lunar) GetWeek() int

func (*Lunar) GetWeekInChinese

func (lunar *Lunar) GetWeekInChinese() string

func (*Lunar) GetWuHou added in v1.0.26

func (lunar *Lunar) GetWuHou() string

GetWuHou 获取物候

func (*Lunar) GetXiu

func (lunar *Lunar) GetXiu() string

func (*Lunar) GetXiuLuck

func (lunar *Lunar) GetXiuLuck() string

func (*Lunar) GetXiuSong

func (lunar *Lunar) GetXiuSong() string

func (*Lunar) GetYear

func (lunar *Lunar) GetYear() int

func (*Lunar) GetYearGan

func (lunar *Lunar) GetYearGan() string

func (*Lunar) GetYearGanByLiChun

func (lunar *Lunar) GetYearGanByLiChun() string

func (*Lunar) GetYearGanExact

func (lunar *Lunar) GetYearGanExact() string

func (*Lunar) GetYearGanIndex added in v1.0.25

func (lunar *Lunar) GetYearGanIndex() int

func (*Lunar) GetYearGanIndexByLiChun added in v1.0.25

func (lunar *Lunar) GetYearGanIndexByLiChun() int

func (*Lunar) GetYearGanIndexExact added in v1.0.8

func (lunar *Lunar) GetYearGanIndexExact() int

func (*Lunar) GetYearInChinese

func (lunar *Lunar) GetYearInChinese() string

func (*Lunar) GetYearInGanZhi

func (lunar *Lunar) GetYearInGanZhi() string

func (*Lunar) GetYearInGanZhiByLiChun

func (lunar *Lunar) GetYearInGanZhiByLiChun() string

func (*Lunar) GetYearInGanZhiExact

func (lunar *Lunar) GetYearInGanZhiExact() string

func (*Lunar) GetYearNaYin

func (lunar *Lunar) GetYearNaYin() string

func (*Lunar) GetYearNineStar added in v1.0.2

func (lunar *Lunar) GetYearNineStar() *NineStar

func (*Lunar) GetYearNineStarBySect added in v1.2.13

func (lunar *Lunar) GetYearNineStarBySect(sect int) *NineStar

func (*Lunar) GetYearPositionTaiSui added in v1.2.13

func (lunar *Lunar) GetYearPositionTaiSui() string

func (*Lunar) GetYearPositionTaiSuiBySect added in v1.2.13

func (lunar *Lunar) GetYearPositionTaiSuiBySect(sect int) string

func (*Lunar) GetYearPositionTaiSuiDesc added in v1.2.13

func (lunar *Lunar) GetYearPositionTaiSuiDesc() string

func (*Lunar) GetYearPositionTaiSuiDescBySect added in v1.2.13

func (lunar *Lunar) GetYearPositionTaiSuiDescBySect(sect int) string

func (*Lunar) GetYearShengXiao

func (lunar *Lunar) GetYearShengXiao() string

func (*Lunar) GetYearShengXiaoByLiChun

func (lunar *Lunar) GetYearShengXiaoByLiChun() string

func (*Lunar) GetYearShengXiaoExact

func (lunar *Lunar) GetYearShengXiaoExact() string

func (*Lunar) GetYearXun added in v1.0.19

func (lunar *Lunar) GetYearXun() string

GetYearXun 获取年所在旬(以正月初一作为新年的开始)

func (*Lunar) GetYearXunByLiChun added in v1.0.19

func (lunar *Lunar) GetYearXunByLiChun() string

GetYearXunByLiChun 获取年所在旬(以立春当天作为新年的开始)

func (*Lunar) GetYearXunExact added in v1.0.19

func (lunar *Lunar) GetYearXunExact() string

GetYearXunExact 获取年所在旬(以立春交接时刻作为新年的开始)

func (*Lunar) GetYearXunKong added in v1.0.19

func (lunar *Lunar) GetYearXunKong() string

GetYearXunKong 获取值年空亡(以正月初一作为新年的开始)

func (*Lunar) GetYearXunKongByLiChun added in v1.0.19

func (lunar *Lunar) GetYearXunKongByLiChun() string

GetYearXunKongByLiChun 获取值年空亡(以立春当天作为新年的开始)

func (*Lunar) GetYearXunKongExact added in v1.0.19

func (lunar *Lunar) GetYearXunKongExact() string

GetYearXunKongExact 获取值年空亡(以立春交接时刻作为新年的开始)

func (*Lunar) GetYearZhi

func (lunar *Lunar) GetYearZhi() string

func (*Lunar) GetYearZhiByLiChun

func (lunar *Lunar) GetYearZhiByLiChun() string

func (*Lunar) GetYearZhiExact

func (lunar *Lunar) GetYearZhiExact() string

func (*Lunar) GetYearZhiIndex added in v1.0.25

func (lunar *Lunar) GetYearZhiIndex() int

func (*Lunar) GetYearZhiIndexByLiChun added in v1.0.25

func (lunar *Lunar) GetYearZhiIndexByLiChun() int

func (*Lunar) GetYearZhiIndexExact added in v1.0.8

func (lunar *Lunar) GetYearZhiIndexExact() int

func (*Lunar) GetYueXiang added in v1.0.2

func (lunar *Lunar) GetYueXiang() string

func (*Lunar) GetZheng

func (lunar *Lunar) GetZheng() string

func (*Lunar) GetZhi

func (lunar *Lunar) GetZhi() string

GetZhi @Deprecated: 该方法已废弃,请使用GetYearZhi

func (*Lunar) GetZhiXing

func (lunar *Lunar) GetZhiXing() string

func (*Lunar) Next added in v1.0.12

func (lunar *Lunar) Next(days int) *Lunar

Next 获取往后推几天的农历日期,如果要往前推,则天数用负数

func (*Lunar) String

func (lunar *Lunar) String() string

func (*Lunar) ToFullString

func (lunar *Lunar) ToFullString() string

type LunarMonth added in v1.2.0

type LunarMonth struct {
	// contains filtered or unexported fields
}

LunarMonth 阴历月

func NewLunarMonth added in v1.2.0

func NewLunarMonth(lunarYear int, lunarMonth int, dayCount int, firstJulianDay float64, index int) *LunarMonth

func NewLunarMonthFromYm added in v1.2.0

func NewLunarMonthFromYm(lunarYear int, lunarMonth int) *LunarMonth

func (*LunarMonth) GetDayCount added in v1.2.0

func (lunarMonth *LunarMonth) GetDayCount() int

func (*LunarMonth) GetFirstJulianDay added in v1.2.0

func (lunarMonth *LunarMonth) GetFirstJulianDay() float64

func (*LunarMonth) GetGan added in v1.3.3

func (lunarMonth *LunarMonth) GetGan() string

func (*LunarMonth) GetGanIndex added in v1.3.3

func (lunarMonth *LunarMonth) GetGanIndex() int

func (*LunarMonth) GetGanZhi added in v1.3.3

func (lunarMonth *LunarMonth) GetGanZhi() string

func (*LunarMonth) GetIndex added in v1.3.3

func (lunarMonth *LunarMonth) GetIndex() int

func (*LunarMonth) GetMonth added in v1.2.0

func (lunarMonth *LunarMonth) GetMonth() int

func (*LunarMonth) GetNineStar added in v1.2.13

func (lunarMonth *LunarMonth) GetNineStar() *NineStar

func (*LunarMonth) GetPositionCai added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionCai() string

func (*LunarMonth) GetPositionCaiDesc added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionCaiDesc() string

func (*LunarMonth) GetPositionFu added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionFu() string

func (*LunarMonth) GetPositionFuBySect added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionFuBySect(sect int) string

func (*LunarMonth) GetPositionFuDesc added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionFuDesc() string

func (*LunarMonth) GetPositionFuDescBySect added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionFuDescBySect(sect int) string

func (*LunarMonth) GetPositionTaiSui added in v1.2.13

func (lunarMonth *LunarMonth) GetPositionTaiSui() string

func (*LunarMonth) GetPositionTaiSuiDesc added in v1.2.13

func (lunarMonth *LunarMonth) GetPositionTaiSuiDesc() string

func (*LunarMonth) GetPositionXi added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionXi() string

func (*LunarMonth) GetPositionXiDesc added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionXiDesc() string

func (*LunarMonth) GetPositionYangGui added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionYangGui() string

func (*LunarMonth) GetPositionYangGuiDesc added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionYangGuiDesc() string

func (*LunarMonth) GetPositionYinGui added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionYinGui() string

func (*LunarMonth) GetPositionYinGuiDesc added in v1.3.3

func (lunarMonth *LunarMonth) GetPositionYinGuiDesc() string

func (*LunarMonth) GetYear added in v1.2.0

func (lunarMonth *LunarMonth) GetYear() int

func (*LunarMonth) GetZhi added in v1.3.3

func (lunarMonth *LunarMonth) GetZhi() string

func (*LunarMonth) GetZhiIndex added in v1.3.3

func (lunarMonth *LunarMonth) GetZhiIndex() int

func (*LunarMonth) IsLeap added in v1.2.0

func (lunarMonth *LunarMonth) IsLeap() bool

func (*LunarMonth) Next added in v1.2.14

func (lunarMonth *LunarMonth) Next(n int) *LunarMonth

func (*LunarMonth) String added in v1.2.0

func (lunarMonth *LunarMonth) String() string

type LunarTime added in v1.2.6

type LunarTime struct {
	// contains filtered or unexported fields
}

LunarTime 时辰

func NewLunarTime added in v1.2.6

func NewLunarTime(lunarYear int, lunarMonth int, lunarDay int, hour int, minute int, second int) *LunarTime

func (*LunarTime) GetChong added in v1.2.6

func (lunarTime *LunarTime) GetChong() string

func (*LunarTime) GetChongDesc added in v1.2.6

func (lunarTime *LunarTime) GetChongDesc() string

func (*LunarTime) GetChongGan added in v1.2.6

func (lunarTime *LunarTime) GetChongGan() string

func (*LunarTime) GetChongGanTie added in v1.2.6

func (lunarTime *LunarTime) GetChongGanTie() string

func (*LunarTime) GetChongShengXiao added in v1.2.6

func (lunarTime *LunarTime) GetChongShengXiao() string

func (*LunarTime) GetGan added in v1.2.6

func (lunarTime *LunarTime) GetGan() string

func (*LunarTime) GetGanIndex added in v1.2.6

func (lunarTime *LunarTime) GetGanIndex() int

func (*LunarTime) GetGanZhi added in v1.2.6

func (lunarTime *LunarTime) GetGanZhi() string

func (*LunarTime) GetJi added in v1.2.6

func (lunarTime *LunarTime) GetJi() *list.List

func (*LunarTime) GetMaxHm added in v1.2.6

func (lunarTime *LunarTime) GetMaxHm() string

GetMaxHm 获取当前时辰的最晚时分

func (*LunarTime) GetMinHm added in v1.2.6

func (lunarTime *LunarTime) GetMinHm() string

GetMinHm 获取当前时辰的最早时分

func (*LunarTime) GetNaYin added in v1.2.6

func (lunarTime *LunarTime) GetNaYin() string

func (*LunarTime) GetNineStar added in v1.2.6

func (lunarTime *LunarTime) GetNineStar() *NineStar

func (*LunarTime) GetPositionCai added in v1.2.6

func (lunarTime *LunarTime) GetPositionCai() string

func (*LunarTime) GetPositionCaiDesc added in v1.2.6

func (lunarTime *LunarTime) GetPositionCaiDesc() string

func (*LunarTime) GetPositionFu added in v1.2.6

func (lunarTime *LunarTime) GetPositionFu() string

func (*LunarTime) GetPositionFuBySect added in v1.2.9

func (lunarTime *LunarTime) GetPositionFuBySect(sect int) string

func (*LunarTime) GetPositionFuDesc added in v1.2.6

func (lunarTime *LunarTime) GetPositionFuDesc() string

func (*LunarTime) GetPositionFuDescBySect added in v1.2.9

func (lunarTime *LunarTime) GetPositionFuDescBySect(sect int) string

func (*LunarTime) GetPositionXi added in v1.2.6

func (lunarTime *LunarTime) GetPositionXi() string

func (*LunarTime) GetPositionXiDesc added in v1.2.6

func (lunarTime *LunarTime) GetPositionXiDesc() string

func (*LunarTime) GetPositionYangGui added in v1.2.6

func (lunarTime *LunarTime) GetPositionYangGui() string

func (*LunarTime) GetPositionYangGuiDesc added in v1.2.6

func (lunarTime *LunarTime) GetPositionYangGuiDesc() string

func (*LunarTime) GetPositionYinGui added in v1.2.6

func (lunarTime *LunarTime) GetPositionYinGui() string

func (*LunarTime) GetPositionYinGuiDesc added in v1.2.6

func (lunarTime *LunarTime) GetPositionYinGuiDesc() string

func (*LunarTime) GetSha added in v1.2.6

func (lunarTime *LunarTime) GetSha() string

func (*LunarTime) GetShengXiao added in v1.2.6

func (lunarTime *LunarTime) GetShengXiao() string

func (*LunarTime) GetTianShen added in v1.2.6

func (lunarTime *LunarTime) GetTianShen() string

func (*LunarTime) GetTianShenLuck added in v1.2.6

func (lunarTime *LunarTime) GetTianShenLuck() string

func (*LunarTime) GetTianShenType added in v1.2.6

func (lunarTime *LunarTime) GetTianShenType() string

func (*LunarTime) GetXun added in v1.2.6

func (lunarTime *LunarTime) GetXun() string

GetXun 获取时辰所在旬

func (*LunarTime) GetXunKong added in v1.2.6

func (lunarTime *LunarTime) GetXunKong() string

GetXunKong 获取值时空亡

func (*LunarTime) GetYi added in v1.2.6

func (lunarTime *LunarTime) GetYi() *list.List

func (*LunarTime) GetZhi added in v1.2.6

func (lunarTime *LunarTime) GetZhi() string

func (*LunarTime) GetZhiIndex added in v1.2.6

func (lunarTime *LunarTime) GetZhiIndex() int

func (*LunarTime) String added in v1.2.6

func (lunarTime *LunarTime) String() string

func (*LunarTime) ToString added in v1.2.6

func (lunarTime *LunarTime) ToString() string

type LunarYear added in v1.2.0

type LunarYear struct {
	// contains filtered or unexported fields
}

LunarYear 阴历年

var CACHE_YEAR *LunarYear = nil

func NewLunarYear added in v1.2.0

func NewLunarYear(lunarYear int) *LunarYear

func (*LunarYear) GetCaoZi added in v1.2.13

func (lunarYear *LunarYear) GetCaoZi() string

func (*LunarYear) GetDayCount added in v1.3.2

func (lunarYear *LunarYear) GetDayCount() int

func (*LunarYear) GetDeJin added in v1.2.6

func (lunarYear *LunarYear) GetDeJin() string

func (*LunarYear) GetFenBing added in v1.2.6

func (lunarYear *LunarYear) GetFenBing() string

func (*LunarYear) GetGan added in v1.2.13

func (lunarYear *LunarYear) GetGan() string

func (*LunarYear) GetGanIndex added in v1.2.13

func (lunarYear *LunarYear) GetGanIndex() int

func (*LunarYear) GetGanZhi added in v1.2.13

func (lunarYear *LunarYear) GetGanZhi() string

func (*LunarYear) GetGengTian added in v1.2.6

func (lunarYear *LunarYear) GetGengTian() string

func (*LunarYear) GetGongZhu added in v1.2.13

func (lunarYear *LunarYear) GetGongZhu() string

func (*LunarYear) GetHuaShou added in v1.2.13

func (lunarYear *LunarYear) GetHuaShou() string

func (*LunarYear) GetJiaTian added in v1.2.13

func (lunarYear *LunarYear) GetJiaTian() string

func (*LunarYear) GetJieQiJulianDays added in v1.2.0

func (lunarYear *LunarYear) GetJieQiJulianDays() []float64

func (*LunarYear) GetKanCan added in v1.2.13

func (lunarYear *LunarYear) GetKanCan() string

func (*LunarYear) GetMonth added in v1.2.0

func (lunarYear *LunarYear) GetMonth(lunarMonth int) *LunarMonth

func (*LunarYear) GetMonths added in v1.2.0

func (lunarYear *LunarYear) GetMonths() *list.List

func (*LunarYear) GetMonthsInYear added in v1.3.2

func (lunarYear *LunarYear) GetMonthsInYear() *list.List

func (*LunarYear) GetNineStar added in v1.2.13

func (lunarYear *LunarYear) GetNineStar() *NineStar

func (*LunarYear) GetPositionCai added in v1.2.13

func (lunarYear *LunarYear) GetPositionCai() string

func (*LunarYear) GetPositionCaiDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionCaiDesc() string

func (*LunarYear) GetPositionFu added in v1.2.13

func (lunarYear *LunarYear) GetPositionFu() string

func (*LunarYear) GetPositionFuBySect added in v1.2.13

func (lunarYear *LunarYear) GetPositionFuBySect(sect int) string

func (*LunarYear) GetPositionFuDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionFuDesc() string

func (*LunarYear) GetPositionFuDescBySect added in v1.2.13

func (lunarYear *LunarYear) GetPositionFuDescBySect(sect int) string

func (*LunarYear) GetPositionTaiSui added in v1.2.13

func (lunarYear *LunarYear) GetPositionTaiSui() string

func (*LunarYear) GetPositionTaiSuiDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionTaiSuiDesc() string

func (*LunarYear) GetPositionXi added in v1.2.13

func (lunarYear *LunarYear) GetPositionXi() string

func (*LunarYear) GetPositionXiDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionXiDesc() string

func (*LunarYear) GetPositionYangGui added in v1.2.13

func (lunarYear *LunarYear) GetPositionYangGui() string

func (*LunarYear) GetPositionYangGuiDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionYangGuiDesc() string

func (*LunarYear) GetPositionYinGui added in v1.2.13

func (lunarYear *LunarYear) GetPositionYinGui() string

func (*LunarYear) GetPositionYinGuiDesc added in v1.2.13

func (lunarYear *LunarYear) GetPositionYinGuiDesc() string

func (*LunarYear) GetQiangMi added in v1.2.13

func (lunarYear *LunarYear) GetQiangMi() string

func (*LunarYear) GetRenBing added in v1.2.13

func (lunarYear *LunarYear) GetRenBing() string

func (*LunarYear) GetRenChu added in v1.2.13

func (lunarYear *LunarYear) GetRenChu() string

func (*LunarYear) GetTouLiang added in v1.2.13

func (lunarYear *LunarYear) GetTouLiang() string

func (*LunarYear) GetTuoGu added in v1.2.13

func (lunarYear *LunarYear) GetTuoGu() string

func (*LunarYear) GetYear added in v1.2.0

func (lunarYear *LunarYear) GetYear() int

func (*LunarYear) GetYuan added in v1.2.13

func (lunarYear *LunarYear) GetYuan() string

func (*LunarYear) GetYun added in v1.2.13

func (lunarYear *LunarYear) GetYun() string

func (*LunarYear) GetZhi added in v1.2.13

func (lunarYear *LunarYear) GetZhi() string

func (*LunarYear) GetZhiIndex added in v1.2.13

func (lunarYear *LunarYear) GetZhiIndex() int

func (*LunarYear) GetZhiShui added in v1.2.6

func (lunarYear *LunarYear) GetZhiShui() string

func (*LunarYear) Next added in v1.2.14

func (lunarYear *LunarYear) Next(n int) *LunarYear

func (*LunarYear) String added in v1.2.0

func (lunarYear *LunarYear) String() string

func (*LunarYear) ToFullString added in v1.2.0

func (lunarYear *LunarYear) ToFullString() string

type NineStar added in v1.0.2

type NineStar struct {
	// contains filtered or unexported fields
}

NineStar 九星

func NewNineStar added in v1.0.2

func NewNineStar(index int) *NineStar

func (*NineStar) GetBaMenInQiMen added in v1.0.2

func (nineStar *NineStar) GetBaMenInQiMen() string

func (*NineStar) GetColor added in v1.0.2

func (nineStar *NineStar) GetColor() string

func (*NineStar) GetIndex added in v1.0.2

func (nineStar *NineStar) GetIndex() int

func (*NineStar) GetLuckInQiMen added in v1.0.2

func (nineStar *NineStar) GetLuckInQiMen() string

func (*NineStar) GetLuckInXuanKong added in v1.0.2

func (nineStar *NineStar) GetLuckInXuanKong() string

func (*NineStar) GetNameInBeiDou added in v1.0.2

func (nineStar *NineStar) GetNameInBeiDou() string

func (*NineStar) GetNameInQiMen added in v1.0.2

func (nineStar *NineStar) GetNameInQiMen() string

func (*NineStar) GetNameInTaiYi added in v1.0.2

func (nineStar *NineStar) GetNameInTaiYi() string

func (*NineStar) GetNameInXuanKong added in v1.0.2

func (nineStar *NineStar) GetNameInXuanKong() string

func (*NineStar) GetNumber added in v1.0.2

func (nineStar *NineStar) GetNumber() string

func (*NineStar) GetPosition added in v1.0.2

func (nineStar *NineStar) GetPosition() string

func (*NineStar) GetPositionDesc added in v1.0.2

func (nineStar *NineStar) GetPositionDesc() string

func (*NineStar) GetSongInTaiYi added in v1.0.2

func (nineStar *NineStar) GetSongInTaiYi() string

func (*NineStar) GetTypeInTaiYi added in v1.0.2

func (nineStar *NineStar) GetTypeInTaiYi() string

func (*NineStar) GetWuXing added in v1.0.2

func (nineStar *NineStar) GetWuXing() string

func (*NineStar) GetYinYangInQiMen added in v1.0.2

func (nineStar *NineStar) GetYinYangInQiMen() string

func (*NineStar) String added in v1.0.2

func (nineStar *NineStar) String() string

func (*NineStar) ToFullString added in v1.0.2

func (nineStar *NineStar) ToFullString() string

type ShuJiu added in v1.0.25

type ShuJiu struct {
	// contains filtered or unexported fields
}

ShuJiu 数九

func NewShuJiu added in v1.0.25

func NewShuJiu(name string, index int) *ShuJiu

func (*ShuJiu) GetIndex added in v1.0.25

func (shuJiu *ShuJiu) GetIndex() int

func (*ShuJiu) GetName added in v1.0.25

func (shuJiu *ShuJiu) GetName() string

func (*ShuJiu) SetIndex added in v1.0.25

func (shuJiu *ShuJiu) SetIndex(index int)

func (*ShuJiu) SetName added in v1.0.25

func (shuJiu *ShuJiu) SetName(name string)

func (*ShuJiu) String added in v1.0.25

func (shuJiu *ShuJiu) String() string

func (*ShuJiu) ToFullString added in v1.0.25

func (shuJiu *ShuJiu) ToFullString() string

func (*ShuJiu) ToString added in v1.0.25

func (shuJiu *ShuJiu) ToString() string

type Solar

type Solar struct {
	// contains filtered or unexported fields
}

Solar 阳历

func NewSolar

func NewSolar(year int, month int, day int, hour int, minute int, second int) *Solar

func NewSolarFromDate

func NewSolarFromDate(date time.Time) *Solar

func NewSolarFromJulianDay

func NewSolarFromJulianDay(julianDay float64) *Solar

func NewSolarFromYmd

func NewSolarFromYmd(year int, month int, day int) *Solar

func (*Solar) GetDay

func (solar *Solar) GetDay() int

func (*Solar) GetFestivals

func (solar *Solar) GetFestivals() *list.List

func (*Solar) GetHour

func (solar *Solar) GetHour() int

func (*Solar) GetJulianDay

func (solar *Solar) GetJulianDay() float64

func (*Solar) GetLunar

func (solar *Solar) GetLunar() *Lunar

func (*Solar) GetMinute

func (solar *Solar) GetMinute() int

func (*Solar) GetMonth

func (solar *Solar) GetMonth() int

func (*Solar) GetOtherFestivals

func (solar *Solar) GetOtherFestivals() *list.List

func (*Solar) GetSalaryRate added in v1.3.4

func (solar *Solar) GetSalaryRate() int

func (*Solar) GetSecond

func (solar *Solar) GetSecond() int

func (*Solar) GetWeek

func (solar *Solar) GetWeek() int

func (*Solar) GetWeekInChinese

func (solar *Solar) GetWeekInChinese() string

func (*Solar) GetXingZuo

func (solar *Solar) GetXingZuo() string

func (*Solar) GetXingzuo

func (solar *Solar) GetXingzuo() string

GetXingzuo @Deprecated: 该方法已废弃,请使用GetXingZuo

func (*Solar) GetYear

func (solar *Solar) GetYear() int

func (*Solar) IsAfter added in v1.3.0

func (solar *Solar) IsAfter(other *Solar) bool

func (*Solar) IsBefore added in v1.3.0

func (solar *Solar) IsBefore(other *Solar) bool

func (*Solar) IsLeapYear

func (solar *Solar) IsLeapYear() bool

func (*Solar) Next

func (solar *Solar) Next(days int, onlyWorkday bool) *Solar

func (*Solar) NextDay added in v1.3.0

func (solar *Solar) NextDay(days int) *Solar

func (*Solar) NextHour added in v1.3.0

func (solar *Solar) NextHour(hours int) *Solar

func (*Solar) NextMonth added in v1.3.0

func (solar *Solar) NextMonth(months int) *Solar

func (*Solar) NextYear added in v1.3.0

func (solar *Solar) NextYear(years int) *Solar

func (*Solar) String

func (solar *Solar) String() string

func (*Solar) Subtract added in v1.3.0

func (solar *Solar) Subtract(other *Solar) int

func (*Solar) SubtractMinute added in v1.3.0

func (solar *Solar) SubtractMinute(other *Solar) int

func (*Solar) ToFullString

func (solar *Solar) ToFullString() string

func (*Solar) ToYmd

func (solar *Solar) ToYmd() string

func (*Solar) ToYmdHms

func (solar *Solar) ToYmdHms() string

type SolarHalfYear

type SolarHalfYear struct {
	// contains filtered or unexported fields
}

SolarHalfYear 阳历半年

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
}

SolarMonth 阳历月

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) GetWeeks added in v1.2.20

func (solarMonth *SolarMonth) GetWeeks(start int) *list.List

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
}

SolarSeason 阳历季度

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
}

SolarWeek 阳历周

func NewSolarWeek

func NewSolarWeek(start int) *SolarWeek

func NewSolarWeekFromDate

func NewSolarWeekFromDate(date time.Time, start int) *SolarWeek

func NewSolarWeekFromYmd

func NewSolarWeekFromYmd(year int, month int, day int, start int) *SolarWeek

func (*SolarWeek) GetDay

func (solarWeek *SolarWeek) GetDay() int

func (*SolarWeek) GetDays

func (solarWeek *SolarWeek) GetDays() *list.List

func (*SolarWeek) GetDaysInMonth

func (solarWeek *SolarWeek) GetDaysInMonth() *list.List

func (*SolarWeek) GetFirstDay

func (solarWeek *SolarWeek) GetFirstDay() *Solar

func (*SolarWeek) GetFirstDayInMonth

func (solarWeek *SolarWeek) GetFirstDayInMonth() *Solar

func (*SolarWeek) GetIndex

func (solarWeek *SolarWeek) GetIndex() int

func (*SolarWeek) GetIndexInYear added in v1.2.15

func (solarWeek *SolarWeek) GetIndexInYear() int

func (*SolarWeek) GetMonth

func (solarWeek *SolarWeek) GetMonth() int

func (*SolarWeek) GetYear

func (solarWeek *SolarWeek) GetYear() int

func (*SolarWeek) Next

func (solarWeek *SolarWeek) Next(weeks int, separateMonth bool) *SolarWeek

func (*SolarWeek) String

func (solarWeek *SolarWeek) String() string

func (*SolarWeek) ToFullString

func (solarWeek *SolarWeek) ToFullString() string

type SolarYear

type SolarYear struct {
	// contains filtered or unexported fields
}

SolarYear 阳历年

func NewSolarYear

func NewSolarYear() *SolarYear

func NewSolarYearFromDate

func NewSolarYearFromDate(date time.Time) *SolarYear

func NewSolarYearFromYear

func NewSolarYearFromYear(year int) *SolarYear

func (*SolarYear) GetMonths

func (solarYear *SolarYear) GetMonths() *list.List

func (*SolarYear) GetYear

func (solarYear *SolarYear) GetYear() int

func (*SolarYear) Next

func (solarYear *SolarYear) Next(years int) *SolarYear

func (*SolarYear) String

func (solarYear *SolarYear) String() string

func (*SolarYear) ToFullString

func (solarYear *SolarYear) ToFullString() string

type Tao added in v1.2.11

type Tao struct {
	// contains filtered or unexported fields
}

Tao 道历

func NewTao added in v1.2.11

func NewTao(year int, month int, day int, hour int, minute int, second int) *Tao

func NewTaoFromLunar added in v1.2.11

func NewTaoFromLunar(lunar *Lunar) *Tao

func NewTaoFromYmd added in v1.2.11

func NewTaoFromYmd(year int, month int, day int) *Tao

func (*Tao) GetDay added in v1.2.11

func (t *Tao) GetDay() int

func (*Tao) GetDayInChinese added in v1.2.11

func (t *Tao) GetDayInChinese() string

func (*Tao) GetFestivals added in v1.2.11

func (t *Tao) GetFestivals() *list.List

func (*Tao) GetLunar added in v1.2.11

func (t *Tao) GetLunar() *Lunar

func (*Tao) GetMonth added in v1.2.11

func (t *Tao) GetMonth() int

func (*Tao) GetMonthInChinese added in v1.2.11

func (t *Tao) GetMonthInChinese() string

func (*Tao) GetYear added in v1.2.11

func (t *Tao) GetYear() int

func (*Tao) GetYearInChinese added in v1.2.11

func (t *Tao) GetYearInChinese() string

func (*Tao) IsDayAnWu added in v1.2.13

func (t *Tao) IsDayAnWu() bool

func (*Tao) IsDayBaHui added in v1.2.11

func (t *Tao) IsDayBaHui() bool

func (*Tao) IsDayBaJie added in v1.2.11

func (t *Tao) IsDayBaJie() bool

func (*Tao) IsDayMingWu added in v1.2.13

func (t *Tao) IsDayMingWu() bool

func (*Tao) IsDaySanHui added in v1.2.11

func (t *Tao) IsDaySanHui() bool

func (*Tao) IsDaySanYuan added in v1.2.11

func (t *Tao) IsDaySanYuan() bool

func (*Tao) IsDayWu added in v1.2.13

func (t *Tao) IsDayWu() bool

func (*Tao) IsDayWuLa added in v1.2.11

func (t *Tao) IsDayWuLa() bool

func (*Tao) String added in v1.2.11

func (t *Tao) String() string

func (*Tao) ToFullString added in v1.2.11

func (t *Tao) ToFullString() string

func (*Tao) ToString added in v1.2.11

func (t *Tao) ToString() string

type TaoFestival added in v1.2.11

type TaoFestival struct {
	// contains filtered or unexported fields
}

TaoFestival 道历节日

func NewTaoFestival added in v1.2.11

func NewTaoFestival(name string, remark string) *TaoFestival

func (*TaoFestival) GetName added in v1.2.11

func (f *TaoFestival) GetName() string

func (*TaoFestival) GetRemark added in v1.2.11

func (f *TaoFestival) GetRemark() string

func (*TaoFestival) String added in v1.2.11

func (f *TaoFestival) String() string

func (*TaoFestival) ToFullString added in v1.2.11

func (f *TaoFestival) ToFullString() string

func (*TaoFestival) ToString added in v1.2.11

func (f *TaoFestival) ToString() string

type XiaoYun added in v1.0.9

type XiaoYun struct {
	// contains filtered or unexported fields
}

XiaoYun 小运

func NewXiaoYun added in v1.0.9

func NewXiaoYun(daYun *DaYun, index int, forward bool) *XiaoYun

func (*XiaoYun) GetAge added in v1.0.9

func (xiaoYun *XiaoYun) GetAge() int

func (*XiaoYun) GetGanZhi added in v1.0.9

func (xiaoYun *XiaoYun) GetGanZhi() string

GetGanZhi 获取干支

func (*XiaoYun) GetIndex added in v1.0.9

func (xiaoYun *XiaoYun) GetIndex() int

func (*XiaoYun) GetXun added in v1.0.19

func (xiaoYun *XiaoYun) GetXun() string

GetXun 获取所在旬

func (*XiaoYun) GetXunKong added in v1.0.19

func (xiaoYun *XiaoYun) GetXunKong() string

GetXunKong 获取旬空(空亡)

func (*XiaoYun) GetYear added in v1.0.9

func (xiaoYun *XiaoYun) GetYear() int

type Yun added in v1.0.9

type Yun struct {
	// contains filtered or unexported fields
}

func NewYun added in v1.0.9

func NewYun(eightChar *EightChar, gender int, sect int) *Yun

func (*Yun) GetDaYun added in v1.0.9

func (yun *Yun) GetDaYun() []*DaYun

GetDaYun 获取10轮大运

func (*Yun) GetDaYunBy added in v1.2.5

func (yun *Yun) GetDaYunBy(n int) []*DaYun

GetDaYunBy 获取大运

func (*Yun) GetGender added in v1.0.9

func (yun *Yun) GetGender() int

GetGender 获取性别

func (*Yun) GetLunar added in v1.0.9

func (yun *Yun) GetLunar() *Lunar

func (*Yun) GetStartDay added in v1.0.9

func (yun *Yun) GetStartDay() int

GetStartDay 获取起运天数

func (*Yun) GetStartHour added in v1.2.15

func (yun *Yun) GetStartHour() int

GetStartHour 获取起运小时数

func (*Yun) GetStartMonth added in v1.0.9

func (yun *Yun) GetStartMonth() int

GetStartMonth 获取起运月数

func (*Yun) GetStartSolar added in v1.0.9

func (yun *Yun) GetStartSolar() *Solar

GetStartSolar 获取起运的阳历日期

func (*Yun) GetStartYear added in v1.0.9

func (yun *Yun) GetStartYear() int

GetStartYear 获取起运年数

func (*Yun) IsForward added in v1.0.9

func (yun *Yun) IsForward() bool

IsForward 是否顺推

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL