calendar

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

@Title calendar @Description 基础包 @Author 6tail

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{"休", "死", "伤", "杜", "", "开", "惊", "生", "景"}

八门(奇门遁甲)

View Source
var CACHE = map[int]*LunarYear{}
View Source
var CHANG_SHENG = []string{"长生", "沐浴", "冠带", "临官", "帝旺", "衰", "病", "死", "墓", "绝", "胎", "养"}

长生十二神

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

七色

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 = map[int]int{}
View Source
var LEAP_11 = []int{} /* 221 elements not displayed */
View Source
var LEAP_12 = []int{} /* 156 elements not displayed */
View Source
var LUCK_QI_MEN = []string{"大凶", "大凶", "小吉", "大吉", "大吉", "大吉", "小凶", "小吉", "小凶"}

吉凶(奇门遁甲)

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

吉凶(玄空风水)

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

月支,按正月起寅排列

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

北斗九星

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

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

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

太乙九神(太乙神数)

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

玄空九星(玄空风水)

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

九数

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

后天八卦方位

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

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

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

太乙九神对应类型

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

五行

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

阴阳(奇门遁甲)

Functions

func ListSolarFromBaZi

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

func ListSolarFromBaZiBySect

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

func ListSolarFromBaZiBySectAndBaseYear

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

func NewExactDateFromDate

func NewExactDateFromDate(date time.Time) time.Time

func NewExactDateFromYmd

func NewExactDateFromYmd(year int, month int, day int) time.Time

func NewExactDateFromYmdHms

func NewExactDateFromYmdHms(year int, month int, day int, hour int, minute int, second int) time.Time

Types

type DaYun

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

func NewDaYun

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

func (*DaYun) GetEndAge

func (daYun *DaYun) GetEndAge() int

func (*DaYun) GetEndYear

func (daYun *DaYun) GetEndYear() int

func (*DaYun) GetGanZhi

func (daYun *DaYun) GetGanZhi() string

获取干支

func (*DaYun) GetIndex

func (daYun *DaYun) GetIndex() int

func (*DaYun) GetLiuNian

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

获取10轮流年

func (*DaYun) GetLiuNianBy

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

获取流年

func (*DaYun) GetLunar

func (daYun *DaYun) GetLunar() *Lunar

func (*DaYun) GetStartAge

func (daYun *DaYun) GetStartAge() int

func (*DaYun) GetStartYear

func (daYun *DaYun) GetStartYear() int

func (*DaYun) GetXiaoYun

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

获取10轮小运

func (*DaYun) GetXiaoYunBy

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

获取小运

func (*DaYun) GetXun

func (daYun *DaYun) GetXun() string

获取所在旬

func (*DaYun) GetXunKong

func (daYun *DaYun) GetXunKong() string

获取旬空(空亡)

type EightChar

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

八字

func NewEightChar

func NewEightChar(lunar *Lunar) *EightChar

func (*EightChar) GetDay

func (eightChar *EightChar) GetDay() string

func (*EightChar) GetDayDiShi

func (eightChar *EightChar) GetDayDiShi() string

func (*EightChar) GetDayGan

func (eightChar *EightChar) GetDayGan() string

func (*EightChar) GetDayGanIndex

func (eightChar *EightChar) GetDayGanIndex() int

func (*EightChar) GetDayHideGan

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

func (*EightChar) GetDayNaYin

func (eightChar *EightChar) GetDayNaYin() string

func (*EightChar) GetDayShiShenGan

func (eightChar *EightChar) GetDayShiShenGan() string

func (*EightChar) GetDayShiShenZhi

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

func (*EightChar) GetDayWuXing

func (eightChar *EightChar) GetDayWuXing() string

func (*EightChar) GetDayXun

func (eightChar *EightChar) GetDayXun() string

获取日柱所在旬

func (*EightChar) GetDayXunKong

func (eightChar *EightChar) GetDayXunKong() string

获取日柱旬空(空亡)

func (*EightChar) GetDayZhi

func (eightChar *EightChar) GetDayZhi() string

func (*EightChar) GetDayZhiIndex

func (eightChar *EightChar) GetDayZhiIndex() int

func (*EightChar) GetLunar

func (eightChar *EightChar) GetLunar() *Lunar

func (*EightChar) GetMingGong

func (eightChar *EightChar) GetMingGong() string

func (*EightChar) GetMingGongNaYin

func (eightChar *EightChar) GetMingGongNaYin() string

func (*EightChar) GetMonth

func (eightChar *EightChar) GetMonth() string

func (*EightChar) GetMonthDiShi

func (eightChar *EightChar) GetMonthDiShi() string

func (*EightChar) GetMonthGan

func (eightChar *EightChar) GetMonthGan() string

func (*EightChar) GetMonthHideGan

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

func (*EightChar) GetMonthNaYin

func (eightChar *EightChar) GetMonthNaYin() string

func (*EightChar) GetMonthShiShenGan

func (eightChar *EightChar) GetMonthShiShenGan() string

func (*EightChar) GetMonthShiShenZhi

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

func (*EightChar) GetMonthWuXing

func (eightChar *EightChar) GetMonthWuXing() string

func (*EightChar) GetMonthXun

func (eightChar *EightChar) GetMonthXun() string

获取月柱所在旬

func (*EightChar) GetMonthXunKong

func (eightChar *EightChar) GetMonthXunKong() string

获取月柱旬空(空亡)

func (*EightChar) GetMonthZhi

func (eightChar *EightChar) GetMonthZhi() string

func (*EightChar) GetSect

func (eightChar *EightChar) GetSect() int

func (*EightChar) GetShenGong

func (eightChar *EightChar) GetShenGong() string

func (*EightChar) GetShenGongNaYin

func (eightChar *EightChar) GetShenGongNaYin() string

func (*EightChar) GetTaiYuan

func (eightChar *EightChar) GetTaiYuan() string

func (*EightChar) GetTaiYuanNaYin

func (eightChar *EightChar) GetTaiYuanNaYin() string

func (*EightChar) GetTime

func (eightChar *EightChar) GetTime() string

func (*EightChar) GetTimeDiShi

func (eightChar *EightChar) GetTimeDiShi() string

func (*EightChar) GetTimeGan

func (eightChar *EightChar) GetTimeGan() string

func (*EightChar) GetTimeHideGan

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

func (*EightChar) GetTimeNaYin

func (eightChar *EightChar) GetTimeNaYin() string

func (*EightChar) GetTimeShiShenGan

func (eightChar *EightChar) GetTimeShiShenGan() string

func (*EightChar) GetTimeShiShenZhi

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

func (*EightChar) GetTimeWuXing

func (eightChar *EightChar) GetTimeWuXing() string

func (*EightChar) GetTimeXun

func (eightChar *EightChar) GetTimeXun() string

获取时柱所在旬

func (*EightChar) GetTimeXunKong

func (eightChar *EightChar) GetTimeXunKong() string

获取时柱旬空(空亡)

func (*EightChar) GetTimeZhi

func (eightChar *EightChar) GetTimeZhi() string

func (*EightChar) GetYear

func (eightChar *EightChar) GetYear() string

func (*EightChar) GetYearDiShi

func (eightChar *EightChar) GetYearDiShi() string

func (*EightChar) GetYearGan

func (eightChar *EightChar) GetYearGan() string

func (*EightChar) GetYearHideGan

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

func (*EightChar) GetYearNaYin

func (eightChar *EightChar) GetYearNaYin() string

func (*EightChar) GetYearShiShenGan

func (eightChar *EightChar) GetYearShiShenGan() string

func (*EightChar) GetYearShiShenZhi

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

func (*EightChar) GetYearWuXing

func (eightChar *EightChar) GetYearWuXing() string

func (*EightChar) GetYearXun

func (eightChar *EightChar) GetYearXun() string

获取年柱所在旬

func (*EightChar) GetYearXunKong

func (eightChar *EightChar) GetYearXunKong() string

获取年柱旬空(空亡)

func (*EightChar) GetYearZhi

func (eightChar *EightChar) GetYearZhi() string

func (*EightChar) GetYun

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

获取运

func (*EightChar) SetSect

func (eightChar *EightChar) SetSect(sect int)

func (*EightChar) String

func (eightChar *EightChar) String() string

type Foto

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

佛历

func NewFoto

func NewFoto(lunarYear int, lunarMonth int, lunarDay int, hour int, minute int, second int) *Foto

func NewFotoFromLunar

func NewFotoFromLunar(lunar *Lunar) *Foto

func NewFotoFromYmd

func NewFotoFromYmd(lunarYear int, lunarMonth int, lunarDay int) *Foto

func (*Foto) GetDay

func (f *Foto) GetDay() int

func (*Foto) GetDayInChinese

func (f *Foto) GetDayInChinese() string

func (*Foto) GetFestivals

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

func (*Foto) GetLunar

func (f *Foto) GetLunar() *Lunar

func (*Foto) GetMonth

func (f *Foto) GetMonth() int

func (*Foto) GetMonthInChinese

func (f *Foto) GetMonthInChinese() string

func (*Foto) GetYear

func (f *Foto) GetYear() int

func (*Foto) GetYearInChinese

func (f *Foto) GetYearInChinese() string

func (*Foto) IsDayYangGong

func (f *Foto) IsDayYangGong() bool

func (*Foto) IsDayZhaiGuanYin

func (f *Foto) IsDayZhaiGuanYin() bool

func (*Foto) IsDayZhaiShuoWang

func (f *Foto) IsDayZhaiShuoWang() bool

func (*Foto) IsDayZhaiSix

func (f *Foto) IsDayZhaiSix() bool

func (*Foto) IsDayZhaiTen

func (f *Foto) IsDayZhaiTen() bool

func (*Foto) IsMonthZhai

func (f *Foto) IsMonthZhai() bool

func (*Foto) String

func (f *Foto) String() string

func (*Foto) ToFullString

func (f *Foto) ToFullString() string

func (*Foto) ToString

func (f *Foto) ToString() string

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 Fu

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

func NewFu

func NewFu(name string, index int) *Fu

func (*Fu) GetIndex

func (fu *Fu) GetIndex() int

func (*Fu) GetName

func (fu *Fu) GetName() string

func (*Fu) SetIndex

func (fu *Fu) SetIndex(index int)

func (*Fu) SetName

func (fu *Fu) SetName(name string)

func (*Fu) String

func (fu *Fu) String() string

func (*Fu) ToFullString

func (fu *Fu) ToFullString() string

func (*Fu) ToString

func (fu *Fu) ToString() string

type Holiday

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

节假日

func NewHoliday

func NewHoliday(day string, name string, work bool, target string) *Holiday

func (*Holiday) GetDay

func (holiday *Holiday) GetDay() string

func (*Holiday) GetName

func (holiday *Holiday) GetName() string

func (*Holiday) GetTarget

func (holiday *Holiday) GetTarget() string

func (*Holiday) IsWork

func (holiday *Holiday) IsWork() bool

func (*Holiday) SetDay

func (holiday *Holiday) SetDay(day string)

func (*Holiday) SetName

func (holiday *Holiday) SetName(name string)

func (*Holiday) SetTarget

func (holiday *Holiday) SetTarget(target string)

func (*Holiday) SetWork

func (holiday *Holiday) SetWork(work bool)

func (*Holiday) String

func (holiday *Holiday) String() string

type JieQi

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

节气

func NewJieQi

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

func (*JieQi) GetName

func (jieQi *JieQi) GetName() string

获取名称

func (*JieQi) GetSolar

func (jieQi *JieQi) GetSolar() *Solar

获取阳历日期

func (*JieQi) IsJie

func (jieQi *JieQi) IsJie() bool

是否节令

func (*JieQi) IsQi

func (jieQi *JieQi) IsQi() bool

是否气令

func (*JieQi) SetName

func (jieQi *JieQi) SetName(name string)

设置名称

func (*JieQi) SetSolar

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

设置阳历日期

func (*JieQi) String

func (jieQi *JieQi) String() string

type LiuNian

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

流年

func NewLiuNian

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

func (*LiuNian) GetAge

func (liuNian *LiuNian) GetAge() int

func (*LiuNian) GetGanZhi

func (liuNian *LiuNian) GetGanZhi() string

获取干支

func (*LiuNian) GetIndex

func (liuNian *LiuNian) GetIndex() int

func (*LiuNian) GetLiuYue

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

func (*LiuNian) GetXun

func (liuNian *LiuNian) GetXun() string

获取所在旬

func (*LiuNian) GetXunKong

func (liuNian *LiuNian) GetXunKong() string

获取旬空(空亡)

func (*LiuNian) GetYear

func (liuNian *LiuNian) GetYear() int

type LiuYue

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

流月

func NewLiuYue

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

func (*LiuYue) GetGanZhi

func (liuYue *LiuYue) GetGanZhi() string

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

func (*LiuYue) GetIndex

func (liuYue *LiuYue) GetIndex() int

func (*LiuYue) GetMonthInChinese

func (liuYue *LiuYue) GetMonthInChinese() string

获取中文的月

func (*LiuYue) GetXun

func (liuYue *LiuYue) GetXun() string

获取所在旬

func (*LiuYue) GetXunKong

func (liuYue *LiuYue) GetXunKong() string

获取旬空(空亡)

type Lunar

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

阴历

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 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

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

func (*Lunar) GetBaZiNaYin

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

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

func (*Lunar) GetBaZiShiShenDayZhi

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

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

func (*Lunar) GetBaZiShiShenGan

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

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

func (*Lunar) GetBaZiShiShenMonthZhi

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

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

func (*Lunar) GetBaZiShiShenTimeZhi

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

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

func (*Lunar) GetBaZiShiShenYearZhi

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

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

func (*Lunar) GetBaZiShiShenZhi

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

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

func (*Lunar) GetBaZiWuXing

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

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

func (*Lunar) GetChong

func (lunar *Lunar) GetChong() string

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

func (*Lunar) GetChongDesc

func (lunar *Lunar) GetChongDesc() string

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

func (*Lunar) GetChongGan

func (lunar *Lunar) GetChongGan() string

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

func (*Lunar) GetChongGanTie

func (lunar *Lunar) GetChongGanTie() string

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

func (*Lunar) GetChongShengXiao

func (lunar *Lunar) GetChongShengXiao() string

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

func (*Lunar) GetCurrentJie

func (lunar *Lunar) GetCurrentJie() *JieQi

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

func (*Lunar) GetCurrentJieQi

func (lunar *Lunar) GetCurrentJieQi() *JieQi

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

func (*Lunar) GetCurrentQi

func (lunar *Lunar) GetCurrentQi() *JieQi

获取当天气令对象,如果无气令,返回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

func (lunar *Lunar) GetDayGanExact2() string

func (*Lunar) GetDayGanIndex

func (lunar *Lunar) GetDayGanIndex() int

func (*Lunar) GetDayGanIndexExact

func (lunar *Lunar) GetDayGanIndexExact() int

func (*Lunar) GetDayGanIndexExact2

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

func (lunar *Lunar) GetDayInGanZhiExact2() string

func (*Lunar) GetDayJi

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

func (*Lunar) GetDayJiShen

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

func (*Lunar) GetDayLu

func (lunar *Lunar) GetDayLu() string

获取日禄

func (*Lunar) GetDayNaYin

func (lunar *Lunar) GetDayNaYin() string

func (*Lunar) GetDayNineStar

func (lunar *Lunar) GetDayNineStar() *NineStar

func (*Lunar) GetDayPositionCai

func (lunar *Lunar) GetDayPositionCai() string

func (*Lunar) GetDayPositionCaiDesc

func (lunar *Lunar) GetDayPositionCaiDesc() string

func (*Lunar) GetDayPositionFu

func (lunar *Lunar) GetDayPositionFu() string

func (*Lunar) GetDayPositionFuBySect

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

func (*Lunar) GetDayPositionFuDesc

func (lunar *Lunar) GetDayPositionFuDesc() string

func (*Lunar) GetDayPositionFuDescBySect

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

func (*Lunar) GetDayPositionTai

func (lunar *Lunar) GetDayPositionTai() string

func (*Lunar) GetDayPositionXi

func (lunar *Lunar) GetDayPositionXi() string

func (*Lunar) GetDayPositionXiDesc

func (lunar *Lunar) GetDayPositionXiDesc() string

func (*Lunar) GetDayPositionYangGui

func (lunar *Lunar) GetDayPositionYangGui() string

func (*Lunar) GetDayPositionYangGuiDesc

func (lunar *Lunar) GetDayPositionYangGuiDesc() string

func (*Lunar) GetDayPositionYinGui

func (lunar *Lunar) GetDayPositionYinGui() string

func (*Lunar) GetDayPositionYinGuiDesc

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

func (lunar *Lunar) GetDayXun() string

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

func (*Lunar) GetDayXunExact

func (lunar *Lunar) GetDayXunExact() string

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

func (*Lunar) GetDayXunExact2

func (lunar *Lunar) GetDayXunExact2() string

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

func (*Lunar) GetDayXunKong

func (lunar *Lunar) GetDayXunKong() string

获取值日空亡

func (*Lunar) GetDayXunKongExact

func (lunar *Lunar) GetDayXunKongExact() string

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

func (*Lunar) GetDayXunKongExact2

func (lunar *Lunar) GetDayXunKongExact2() string

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

func (*Lunar) GetDayYi

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

func (*Lunar) GetDayZhi

func (lunar *Lunar) GetDayZhi() string

func (*Lunar) GetDayZhiExact

func (lunar *Lunar) GetDayZhiExact() string

func (*Lunar) GetDayZhiExact2

func (lunar *Lunar) GetDayZhiExact2() string

func (*Lunar) GetDayZhiIndex

func (lunar *Lunar) GetDayZhiIndex() int

func (*Lunar) GetDayZhiIndexExact

func (lunar *Lunar) GetDayZhiIndexExact() int

func (*Lunar) GetDayZhiIndexExact2

func (lunar *Lunar) GetDayZhiIndexExact2() int

func (*Lunar) GetEightChar

func (lunar *Lunar) GetEightChar() *EightChar

func (*Lunar) GetFestivals

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

func (*Lunar) GetFoto

func (lunar *Lunar) GetFoto() *Foto

获取佛历

func (*Lunar) GetFu

func (lunar *Lunar) GetFu() *Fu

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

func (*Lunar) GetGan

func (lunar *Lunar) GetGan() string

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

func (*Lunar) GetGong

func (lunar *Lunar) GetGong() string

func (*Lunar) GetHour

func (lunar *Lunar) GetHour() int

func (*Lunar) GetJie

func (lunar *Lunar) GetJie() string

func (*Lunar) GetJieQi

func (lunar *Lunar) GetJieQi() string

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

func (*Lunar) GetJieQiList

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

func (*Lunar) GetJieQiTable

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

func (*Lunar) GetLiuYao

func (lunar *Lunar) GetLiuYao() string

获取六曜

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

func (lunar *Lunar) GetMonthGanIndex() int

func (*Lunar) GetMonthGanIndexExact

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

func (lunar *Lunar) GetMonthNineStar() *NineStar

func (*Lunar) GetMonthPositionTai

func (lunar *Lunar) GetMonthPositionTai() string

func (*Lunar) GetMonthShengXiao

func (lunar *Lunar) GetMonthShengXiao() string

func (*Lunar) GetMonthXun

func (lunar *Lunar) GetMonthXun() string

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

func (*Lunar) GetMonthXunExact

func (lunar *Lunar) GetMonthXunExact() string

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

func (*Lunar) GetMonthXunKong

func (lunar *Lunar) GetMonthXunKong() string

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

func (*Lunar) GetMonthXunKongExact

func (lunar *Lunar) GetMonthXunKongExact() string

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

func (*Lunar) GetMonthZhi

func (lunar *Lunar) GetMonthZhi() string

func (*Lunar) GetMonthZhiExact

func (lunar *Lunar) GetMonthZhiExact() string

func (*Lunar) GetMonthZhiIndex

func (lunar *Lunar) GetMonthZhiIndex() int

func (*Lunar) GetMonthZhiIndexExact

func (lunar *Lunar) GetMonthZhiIndexExact() int

func (*Lunar) GetNextJie

func (lunar *Lunar) GetNextJie() *JieQi

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

func (*Lunar) GetNextJieQi

func (lunar *Lunar) GetNextJieQi() *JieQi

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

func (*Lunar) GetNextQi

func (lunar *Lunar) GetNextQi() *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

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

func (*Lunar) GetPositionCaiDesc

func (lunar *Lunar) GetPositionCaiDesc() string

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

func (*Lunar) GetPositionFu

func (lunar *Lunar) GetPositionFu() string

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

func (*Lunar) GetPositionFuDesc

func (lunar *Lunar) GetPositionFuDesc() string

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

func (*Lunar) GetPositionXi

func (lunar *Lunar) GetPositionXi() string

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

func (*Lunar) GetPositionXiDesc

func (lunar *Lunar) GetPositionXiDesc() string

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

func (*Lunar) GetPositionYangGui

func (lunar *Lunar) GetPositionYangGui() string

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

func (*Lunar) GetPositionYangGuiDesc

func (lunar *Lunar) GetPositionYangGuiDesc() string

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

func (*Lunar) GetPositionYinGui

func (lunar *Lunar) GetPositionYinGui() string

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

func (*Lunar) GetPositionYinGuiDesc

func (lunar *Lunar) GetPositionYinGuiDesc() string

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

func (*Lunar) GetPrevJie

func (lunar *Lunar) GetPrevJie() *JieQi

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

func (*Lunar) GetPrevJieQi

func (lunar *Lunar) GetPrevJieQi() *JieQi

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

func (*Lunar) GetPrevQi

func (lunar *Lunar) GetPrevQi() *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

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

func (*Lunar) GetShengxiao

func (lunar *Lunar) GetShengxiao() string

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

func (*Lunar) GetShou

func (lunar *Lunar) GetShou() string

func (*Lunar) GetShuJiu

func (lunar *Lunar) GetShuJiu() *ShuJiu

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

func (*Lunar) GetSolar

func (lunar *Lunar) GetSolar() *Solar

func (*Lunar) GetTime

func (lunar *Lunar) GetTime() *LunarTime

获取时辰

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

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

func (lunar *Lunar) GetTimeNineStar() *NineStar

func (*Lunar) GetTimePositionCai

func (lunar *Lunar) GetTimePositionCai() string

func (*Lunar) GetTimePositionCaiDesc

func (lunar *Lunar) GetTimePositionCaiDesc() string

func (*Lunar) GetTimePositionFu

func (lunar *Lunar) GetTimePositionFu() string

func (*Lunar) GetTimePositionFuDesc

func (lunar *Lunar) GetTimePositionFuDesc() string

func (*Lunar) GetTimePositionXi

func (lunar *Lunar) GetTimePositionXi() string

func (*Lunar) GetTimePositionXiDesc

func (lunar *Lunar) GetTimePositionXiDesc() string

func (*Lunar) GetTimePositionYangGui

func (lunar *Lunar) GetTimePositionYangGui() string

func (*Lunar) GetTimePositionYangGuiDesc

func (lunar *Lunar) GetTimePositionYangGuiDesc() string

func (*Lunar) GetTimePositionYinGui

func (lunar *Lunar) GetTimePositionYinGui() string

func (*Lunar) GetTimePositionYinGuiDesc

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

func (lunar *Lunar) GetTimeXun() string

获取时辰所在旬

func (*Lunar) GetTimeXunKong

func (lunar *Lunar) GetTimeXunKong() string

获取值时空亡

func (*Lunar) GetTimeYi

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

func (*Lunar) GetTimeZhi

func (lunar *Lunar) GetTimeZhi() string

func (*Lunar) GetTimeZhiIndex

func (lunar *Lunar) GetTimeZhiIndex() int

func (*Lunar) GetTimes

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

获取当天的时辰列表

func (*Lunar) GetWeek

func (lunar *Lunar) GetWeek() int

func (*Lunar) GetWeekInChinese

func (lunar *Lunar) GetWeekInChinese() string

func (*Lunar) GetWuHou

func (lunar *Lunar) GetWuHou() string

获取物候

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

func (lunar *Lunar) GetYearGanIndex() int

func (*Lunar) GetYearGanIndexByLiChun

func (lunar *Lunar) GetYearGanIndexByLiChun() int

func (*Lunar) GetYearGanIndexExact

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

func (lunar *Lunar) GetYearNineStar() *NineStar

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

func (lunar *Lunar) GetYearXun() string

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

func (*Lunar) GetYearXunByLiChun

func (lunar *Lunar) GetYearXunByLiChun() string

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

func (*Lunar) GetYearXunExact

func (lunar *Lunar) GetYearXunExact() string

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

func (*Lunar) GetYearXunKong

func (lunar *Lunar) GetYearXunKong() string

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

func (*Lunar) GetYearXunKongByLiChun

func (lunar *Lunar) GetYearXunKongByLiChun() string

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

func (*Lunar) GetYearXunKongExact

func (lunar *Lunar) GetYearXunKongExact() string

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

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

func (lunar *Lunar) GetYearZhiIndex() int

func (*Lunar) GetYearZhiIndexByLiChun

func (lunar *Lunar) GetYearZhiIndexByLiChun() int

func (*Lunar) GetYearZhiIndexExact

func (lunar *Lunar) GetYearZhiIndexExact() int

func (*Lunar) GetYueXiang

func (lunar *Lunar) GetYueXiang() string

func (*Lunar) GetZheng

func (lunar *Lunar) GetZheng() string

func (*Lunar) GetZhi

func (lunar *Lunar) GetZhi() string

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

func (*Lunar) GetZhiXing

func (lunar *Lunar) GetZhiXing() string

func (*Lunar) Next

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

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

func (*Lunar) String

func (lunar *Lunar) String() string

func (*Lunar) ToFullString

func (lunar *Lunar) ToFullString() string

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 NewLunarTime(lunarYear int, lunarMonth int, lunarDay int, hour int, minute int, second int) *LunarTime

func (*LunarTime) GetChong

func (lunarTime *LunarTime) GetChong() string

func (*LunarTime) GetChongDesc

func (lunarTime *LunarTime) GetChongDesc() string

func (*LunarTime) GetChongGan

func (lunarTime *LunarTime) GetChongGan() string

func (*LunarTime) GetChongGanTie

func (lunarTime *LunarTime) GetChongGanTie() string

func (*LunarTime) GetChongShengXiao

func (lunarTime *LunarTime) GetChongShengXiao() string

func (*LunarTime) GetGan

func (lunarTime *LunarTime) GetGan() string

func (*LunarTime) GetGanIndex

func (lunarTime *LunarTime) GetGanIndex() int

func (*LunarTime) GetGanZhi

func (lunarTime *LunarTime) GetGanZhi() string

func (*LunarTime) GetJi

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

func (*LunarTime) GetMaxHm

func (lunarTime *LunarTime) GetMaxHm() string

获取当前时辰的最晚时分

func (*LunarTime) GetMinHm

func (lunarTime *LunarTime) GetMinHm() string

获取当前时辰的最早时分

func (*LunarTime) GetNaYin

func (lunarTime *LunarTime) GetNaYin() string

func (*LunarTime) GetNineStar

func (lunarTime *LunarTime) GetNineStar() *NineStar

func (*LunarTime) GetPositionCai

func (lunarTime *LunarTime) GetPositionCai() string

func (*LunarTime) GetPositionCaiDesc

func (lunarTime *LunarTime) GetPositionCaiDesc() string

func (*LunarTime) GetPositionFu

func (lunarTime *LunarTime) GetPositionFu() string

func (*LunarTime) GetPositionFuBySect

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

func (*LunarTime) GetPositionFuDesc

func (lunarTime *LunarTime) GetPositionFuDesc() string

func (*LunarTime) GetPositionFuDescBySect

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

func (*LunarTime) GetPositionXi

func (lunarTime *LunarTime) GetPositionXi() string

func (*LunarTime) GetPositionXiDesc

func (lunarTime *LunarTime) GetPositionXiDesc() string

func (*LunarTime) GetPositionYangGui

func (lunarTime *LunarTime) GetPositionYangGui() string

func (*LunarTime) GetPositionYangGuiDesc

func (lunarTime *LunarTime) GetPositionYangGuiDesc() string

func (*LunarTime) GetPositionYinGui

func (lunarTime *LunarTime) GetPositionYinGui() string

func (*LunarTime) GetPositionYinGuiDesc

func (lunarTime *LunarTime) GetPositionYinGuiDesc() string

func (*LunarTime) GetSha

func (lunarTime *LunarTime) GetSha() string

func (*LunarTime) GetShengXiao

func (lunarTime *LunarTime) GetShengXiao() string

func (*LunarTime) GetTianShen

func (lunarTime *LunarTime) GetTianShen() string

func (*LunarTime) GetTianShenLuck

func (lunarTime *LunarTime) GetTianShenLuck() string

func (*LunarTime) GetTianShenType

func (lunarTime *LunarTime) GetTianShenType() string

func (*LunarTime) GetXun

func (lunarTime *LunarTime) GetXun() string

获取时辰所在旬

func (*LunarTime) GetXunKong

func (lunarTime *LunarTime) GetXunKong() string

获取值时空亡

func (*LunarTime) GetYi

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

func (*LunarTime) GetZhi

func (lunarTime *LunarTime) GetZhi() string

func (*LunarTime) GetZhiIndex

func (lunarTime *LunarTime) GetZhiIndex() int

func (*LunarTime) String

func (lunarTime *LunarTime) String() string

func (*LunarTime) ToString

func (lunarTime *LunarTime) ToString() string

type LunarYear

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

阴历年

func NewLunarYear

func NewLunarYear(lunarYear int) *LunarYear

func (*LunarYear) GetDeJin

func (lunarYear *LunarYear) GetDeJin() string

func (*LunarYear) GetFenBing

func (lunarYear *LunarYear) GetFenBing() string

func (*LunarYear) GetGengTian

func (lunarYear *LunarYear) GetGengTian() string

func (*LunarYear) GetJieQiJulianDays

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

func (*LunarYear) GetMonth

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

func (*LunarYear) GetMonths

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

func (*LunarYear) GetYear

func (lunarYear *LunarYear) GetYear() int

func (*LunarYear) GetZhiShui

func (lunarYear *LunarYear) GetZhiShui() string

func (*LunarYear) String

func (lunarYear *LunarYear) String() string

func (*LunarYear) ToFullString

func (lunarYear *LunarYear) ToFullString() string

type NineStar

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

九星

func NewNineStar

func NewNineStar(index int) *NineStar

func (*NineStar) GetBaMenInQiMen

func (nineStar *NineStar) GetBaMenInQiMen() string

func (*NineStar) GetColor

func (nineStar *NineStar) GetColor() string

func (*NineStar) GetIndex

func (nineStar *NineStar) GetIndex() int

func (*NineStar) GetLuckInQiMen

func (nineStar *NineStar) GetLuckInQiMen() string

func (*NineStar) GetLuckInXuanKong

func (nineStar *NineStar) GetLuckInXuanKong() string

func (*NineStar) GetNameInBeiDou

func (nineStar *NineStar) GetNameInBeiDou() string

func (*NineStar) GetNameInQiMen

func (nineStar *NineStar) GetNameInQiMen() string

func (*NineStar) GetNameInTaiYi

func (nineStar *NineStar) GetNameInTaiYi() string

func (*NineStar) GetNameInXuanKong

func (nineStar *NineStar) GetNameInXuanKong() string

func (*NineStar) GetNumber

func (nineStar *NineStar) GetNumber() string

func (*NineStar) GetPosition

func (nineStar *NineStar) GetPosition() string

func (*NineStar) GetPositionDesc

func (nineStar *NineStar) GetPositionDesc() string

func (*NineStar) GetSongInTaiYi

func (nineStar *NineStar) GetSongInTaiYi() string

func (*NineStar) GetTypeInTaiYi

func (nineStar *NineStar) GetTypeInTaiYi() string

func (*NineStar) GetWuXing

func (nineStar *NineStar) GetWuXing() string

func (*NineStar) GetYinYangInQiMen

func (nineStar *NineStar) GetYinYangInQiMen() string

func (*NineStar) String

func (nineStar *NineStar) String() string

func (*NineStar) ToFullString

func (nineStar *NineStar) ToFullString() string

type ShuJiu

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

数九

func NewShuJiu

func NewShuJiu(name string, index int) *ShuJiu

func (*ShuJiu) GetIndex

func (shuJiu *ShuJiu) GetIndex() int

func (*ShuJiu) GetName

func (shuJiu *ShuJiu) GetName() string

func (*ShuJiu) SetIndex

func (shuJiu *ShuJiu) SetIndex(index int)

func (*ShuJiu) SetName

func (shuJiu *ShuJiu) SetName(name string)

func (*ShuJiu) String

func (shuJiu *ShuJiu) String() string

func (*ShuJiu) ToFullString

func (shuJiu *ShuJiu) ToFullString() string

func (*ShuJiu) ToString

func (shuJiu *ShuJiu) ToString() string

type Solar

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

阳历

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) GetCalendar

func (solar *Solar) GetCalendar() time.Time

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) 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

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

func (*Solar) GetYear

func (solar *Solar) GetYear() int

func (*Solar) IsLeapYear

func (solar *Solar) IsLeapYear() bool

func (*Solar) Next

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

func (*Solar) String

func (solar *Solar) String() string

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
}

阳历半年

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 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) 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
}

阳历年

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 XiaoYun

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

小运

func NewXiaoYun

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

func (*XiaoYun) GetAge

func (xiaoYun *XiaoYun) GetAge() int

func (*XiaoYun) GetGanZhi

func (xiaoYun *XiaoYun) GetGanZhi() string

获取干支

func (*XiaoYun) GetIndex

func (xiaoYun *XiaoYun) GetIndex() int

func (*XiaoYun) GetXun

func (xiaoYun *XiaoYun) GetXun() string

获取所在旬

func (*XiaoYun) GetXunKong

func (xiaoYun *XiaoYun) GetXunKong() string

获取旬空(空亡)

func (*XiaoYun) GetYear

func (xiaoYun *XiaoYun) GetYear() int

type Yun

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

func NewYun

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

func (*Yun) GetDaYun

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

获取10轮大运

func (*Yun) GetDaYunBy

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

获取大运

func (*Yun) GetGender

func (yun *Yun) GetGender() int

获取性别

func (*Yun) GetLunar

func (yun *Yun) GetLunar() *Lunar

func (*Yun) GetStartDay

func (yun *Yun) GetStartDay() int

获取起运天数

func (*Yun) GetStartMonth

func (yun *Yun) GetStartMonth() int

获取起运月数

func (*Yun) GetStartSolar

func (yun *Yun) GetStartSolar() *Solar

获取起运的阳历日期

func (*Yun) GetStartYear

func (yun *Yun) GetStartYear() int

获取起运年数

func (*Yun) IsForward

func (yun *Yun) IsForward() bool

是否顺推

Jump to

Keyboard shortcuts

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