solar

package
v0.0.0-...-6d37a68 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solar

type Solar struct {
	CurrentSolarterm *solarterm.Solarterm
	PrevSolarterm    *solarterm.Solarterm
	NextSolarterm    *solarterm.Solarterm
	// contains filtered or unexported fields
}

Solar 公历

func NewSolar

func NewSolar(t *time.Time) *Solar

NewSolar 创建公历对象

func (*Solar) Animal

func (solar *Solar) Animal() *animal.Animal

Animal 返回年份生肖

func (*Solar) Constellation

func (solar *Solar) Constellation() *constellation.Constellation

Constellation 返回星座

func (*Solar) Equals

func (solar *Solar) Equals(b *Solar) bool

Equals 返回两个对象是否相同

func (*Solar) GetDay

func (solar *Solar) GetDay() int64

GetDay 日

func (*Solar) GetHour

func (solar *Solar) GetHour() int64

GetHour 时

func (*Solar) GetMinute

func (solar *Solar) GetMinute() int64

GetMinute 分

func (*Solar) GetMonth

func (solar *Solar) GetMonth() int64

GetMonth 月

func (*Solar) GetNanosecond

func (solar *Solar) GetNanosecond() int64

GetNanosecond 毫秒

func (*Solar) GetSecond

func (solar *Solar) GetSecond() int64

GetSecond 秒

func (*Solar) GetYear

func (solar *Solar) GetYear() int64

GetYear 年

func (*Solar) IsLeep

func (solar *Solar) IsLeep() bool

IsLeep 是否为闰年

func (*Solar) WeekAlias

func (solar *Solar) WeekAlias() string

WeekAlias 返回当前周次(日, 一...)

func (*Solar) WeekNumber

func (solar *Solar) WeekNumber() int64

WeekNumber 返回当前周次(周日为0, 周一为1...)

Jump to

Keyboard shortcuts

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