BaziGo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 8 Imported by: 2

README

BaziGo

GO语言的八字库

八字部分参考的是三清宫命理 https://weibo.com/bazishequ

日历部分参考中国日历类 中国日历类(Chinese Calendar Class (CCC)) 版本:v0.1,JavaScript版本 版权所有 (C) 2002-2003 neweroica (wy25@mail.bnu.edu.cn) 联系方式: Email: wy25@mail.bnu.edu.cn QQ: 32460746

日历部分参考CNPACK 作者:刘啸 (liuxiao@cnpack.org) 周劲羽(zjy@cnpack.org)

出生日期新历: 1995 年 6 月 16 日 19 : 7 : 0 基本八字: 乙亥 壬午 戊寅 壬戌

命盘解析 Tables
(木)[官] (水)[才] (土)[主] (水)[才]
(水)[才杀] (火)[印劫] (木)[杀卩比] (土)[比伤印]
山头火 杨柳木 城墙土 大海水

所属节令: 芒种 1995 年 6 月 6 日 11 : 42 : 28 小暑 1995 年 7 月 7 日 22 : 1 : 0 大运: 癸未 甲申 乙酉 丙戌 丁亥 戊子 己丑 庚寅 辛卯 壬辰 起运时间 2002 年 5 月 25 日 7 : 7 : 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBazi

func PrintBazi(bazi *TBazi)

按照特殊格式化输出(未完成)

Types

type TBazi

type TBazi struct {
	SolarDate   TDate       // 新历日期
	LunarDate   TDate       // 农历日期
	BaziDate    TDate       // 八字日期
	PreviousJie TDate       // 上一个节(气)
	NextJie     TDate       // 下一个节(气)
	SiZhu       TSiZhu      // 四柱
	XiYong      TXiYong     // 喜用神
	DaYun       TDaYun      // 大运
	HeHuaChong  THeHuaChong // 合化冲
}

八字

func GetBazi

func GetBazi(nYear, nMonth, nDay, nHour, nMinute, nSecond, nSex int) TBazi

从新历获取八字(年, 月, 日, 时, 分, 秒, 性别男1,女0)

func GetBaziFromLunar

func GetBaziFromLunar(nYear, nMonth, nDay, nHour, nMinute, nSecond, nSex int, isLeap bool) TBazi

从农历获取八字

func (*TBazi) Print

func (self *TBazi) Print()

Directories

Path Synopsis
dayun.go
dayun.go
govcl
由GOVCL UI设计器自动生成,不要编辑
由GOVCL UI设计器自动生成,不要编辑

Jump to

Keyboard shortcuts

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