calendar

package
v0.0.0-...-dddda54 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Day

type Day struct {
	Year, Month, Day int
}

func (*Day) Festival

func (d *Day) Festival() string

type LunarDayInfo

type LunarDayInfo struct {
	GanZhiYear     string // 农历年的干支
	GanZhiMonth    string // 农历月的干支
	GanZhiDay      string // 农历日的干支
	LunarMonthName string // 农历月名
	LunarDayName   string // 农历日名
	LunarLeapMonth int32  // 未使用
	Zodiac         string // 农历年的生肖
	Term           string // 农历节气
	SolarFestival  string // 公历节日
	LunarFestival  string // 农历节日
	Worktime       int32  // 未使用
}

func SolarToLunar

func SolarToLunar(year, month, day int) (LunarDayInfo, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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