lunarsolar

package module
v0.0.0-...-b2653ad Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lunar

type Lunar struct {
	IsLeap     bool //是否闰月
	LunarDay   int
	LunarMonth int
	LunarYear  int
}

func SolarToLunar

func SolarToLunar(solar Solar) *Lunar

* *公历转农历 *

type Solar

type Solar struct {
	SolarDay   int
	SolarMonth int
	SolarYear  int
}

func LunarToSolar

func LunarToSolar(lunar Lunar) *Solar

* *农历转公历 *

Jump to

Keyboard shortcuts

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