Documentation
¶
Index ¶
- func FromSolarTimestamp(ts int64) (lunarYear, lunarMonth, lunarDay int64, lunarMonthIsLeap bool)
- func ToSolarTimestamp(year, month, day, hour, minute, second int64, isLeapMonth bool) int64
- type Lunar
- func (lunar *Lunar) Animal() *animal.Animal
- func (lunar *Lunar) DayAlias() (alias string)
- func (lunar *Lunar) Equals(b *Lunar) bool
- func (lunar *Lunar) Format(layout string) string
- func (lunar *Lunar) GetDay() int64
- func (lunar *Lunar) GetMonth() int64
- func (lunar *Lunar) GetYear() int64
- func (lunar *Lunar) IsLeap() bool
- func (lunar *Lunar) IsLeapMonth() bool
- func (lunar *Lunar) LeapMonth() int64
- func (lunar *Lunar) MonthAlias() string
- func (lunar *Lunar) ToString() string
- func (lunar *Lunar) YearAlias() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSolarTimestamp ¶
FromSolarTimestamp 通过时间戳创建
func ToSolarTimestamp ¶
ToSolarTimestamp 转换为时间戳
Types ¶
Click to show internal directories.
Click to hide internal directories.