converter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLunarToSolar

func ConvertLunarToSolar(year, month, day int, leap bool) [3]int

农历转公历

func ConvertSolarToLunar

func ConvertSolarToLunar(solarYear, solarMonth, solarDay int) [4]int

公历转农历

func GetDayGanZhiIndex

func GetDayGanZhiIndex(year, month, day int, leap bool) int

获取流日天干地支的索引值,从0开始

func GetLunarLeapMonth

func GetLunarLeapMonth(year int) int

获取农历某年闰月的月份,为零的时候没有闰月

func GetLunarLeapMonthDays

func GetLunarLeapMonthDays(year int) int

某年闰月天数

func GetLunarMonthDays

func GetLunarMonthDays(year, month int, leapMonth bool) int

获取农历某月天数

func GetLunarYearDays

func GetLunarYearDays(year int) int

获取农历某年全年天数

Types

This section is empty.

Jump to

Keyboard shortcuts

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