Documentation
¶
Index ¶
- Constants
- func GetAstro(m, d int) string
- func GetLunarInfo(y int) int
- func GetStemBranch(y int) string
- func GetTermInfo(y, n int) int
- func GetZodiac(lunar *Lunar) string
- func Solar2Lunar(time time.Time) string
- func StemBranchDay(y, m, d int) string
- func StemBranchHour(y, m, d, h int) string
- func StemBranchMonth(y, m, d int) string
- func StemBranchYear(y int) string
- type Calendar
- type Lunar
- type Solar
Constants ¶
View Source
const DateFormat = "2006/01/02 15:04"
DateFormat ...
View Source
const LunarDateFormat = "2006/01/02"
Variables ¶
This section is empty.
Functions ¶
func StemBranchHour ¶
StemBranchHour 获取时柱 子 丑 寅 卯 辰 己 23-01:01-03:03-05 :05-07:07-09:09-11 午 未 申 酉 戊 亥 11-13:13-15:15-17:17-19:19-21:21-23 `甲子`, `乙丑`, `丙寅`, `丁卯`, `戊辰`, `己巳`, `庚午`, `辛未`, `壬申`, `癸酉`, `甲戌`, `乙亥`, //甲或己日 `丙子`, `丁丑`, `戊寅`, `己卯`, `庚辰`, `辛巳`, `壬午`, `癸未`, `甲申`, `乙酉`, `丙戌`, `丁亥`, //乙或庚日 `戊子`, `己丑`, `庚寅`, `辛卯`, `壬辰`, `癸巳`, `甲午`, `乙未`, `丙申`, `丁酉`, `戊戌`, `己亥`, //丙或辛日 `庚子`, `辛丑`, `壬寅`, `癸卯`, `甲辰`, `乙巳`, `丙午`, `丁未`, `戊申`, `己酉`, `庚戌`, `辛亥`, //丁或壬日 `壬子`, `癸丑`, `甲寅`, `乙卯`, `丙辰`, `丁巳`, `戊午`, `己未`, `庚申`, `辛酉`, `壬戌`, `癸亥`, //戊或癸日
Types ¶
Click to show internal directories.
Click to hide internal directories.