xa

package module
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 0 Imported by: 0

README

干支计算

  • 传入阳历年月日时

  • func NewGanZhi(year, month, day, hour int) *GanZhi{} 月干支计算精确到日

例如: 2022年2月4日 4:50分立春. 
传入: 2022, 2, 4, 0 显示: 壬寅 壬寅 戊子 壬子
  • func NewTGanZhi(year, month, day, hour int) *GanZhi{} 月干支计算精确到时
2033-2-3 19H  壬年 月干支:癸丑
2033-2-3 20H  癸年 月干支:甲寅

2022 2 4 4H 壬寅年 月干支:壬寅
2022 2 4 3H 辛丑年 月干支:辛丑
  • func NewTMGanZhi(year, month, day, hour, min int) *GanZhi{} 干支精确到分钟
y, m, d, h, min := 2022, 5, 21, 9, 21 //立夏: 2022-05-05 20:25:46
y, m, d, h, min = 2022, 5, 21, 9, 23  //小满: 2022-05-21 09:22:24

已知问题

月将计算错误,已经注销相关代码.

License

MIT

Copyright (c) 2017-present, Aquarian-Age

Documentation

Overview

Package xa 干支计算

Directories

Path Synopsis
pkg
cmd
gz
Package gz 干支计算 六十甲子 五行生克 十二长生 十干禄位 纳因 年月日时干支 咸池 华盖 黄黑 建除 日禽 月将 贵人 天三门 地四户 地私门 太冲天马 登天门 阴历 朔望
Package gz 干支计算 六十甲子 五行生克 十二长生 十干禄位 纳因 年月日时干支 咸池 华盖 黄黑 建除 日禽 月将 贵人 天三门 地四户 地私门 太冲天马 登天门 阴历 朔望
pub
x

Jump to

Keyboard shortcuts

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