MoonPhase

package module
v0.0.0-...-6c61017 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: ISC Imports: 2 Imported by: 4

README

MoonPhase

MIT licensed

Packege MoonPhase allow calculat the phase of Moon, and other related veriables. It's base on php-moon-phase

Installation

To install the package on your seysetm, run

go get github.com/janczer/MoonPhase

Quick Start

time := time.Date(2007, 10, 1, 24, 0, 0, 0, time.UTC)
//time := time.Now()
m := MoonPhase.New(time)

License

MoonPhase is released under the MIT License. It is copyrighted by Ivan Menshykov and the contributors acknowledged below.

Acknowledgments

This package's code and documentation are very closely derived php-moon-phase PHP class for calculating the phase of the Moon created by Samir Shah.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Moon

type Moon struct {
	// contains filtered or unexported fields
}

func New

func New(t time.Time) (moonP *Moon)

func (*Moon) Age

func (m *Moon) Age() float64

func (*Moon) Diameter

func (m *Moon) Diameter() float64

func (*Moon) Distance

func (m *Moon) Distance() float64

func (*Moon) FirstQuarter

func (m *Moon) FirstQuarter() float64

func (*Moon) FullMoon

func (m *Moon) FullMoon() float64

func (*Moon) Illumination

func (m *Moon) Illumination() float64

func (*Moon) LastQuarter

func (m *Moon) LastQuarter() float64

func (*Moon) Longitude

func (m *Moon) Longitude() float64

func (*Moon) NewMoon

func (m *Moon) NewMoon() float64

func (*Moon) NextFirstQuarter

func (m *Moon) NextFirstQuarter() float64

func (*Moon) NextFullMoon

func (m *Moon) NextFullMoon() float64

func (*Moon) NextLastQuarter

func (m *Moon) NextLastQuarter() float64

func (*Moon) NextNewMoon

func (m *Moon) NextNewMoon() float64

func (*Moon) Phase

func (m *Moon) Phase() float64

func (*Moon) PhaseName

func (m *Moon) PhaseName() string

func (*Moon) SunDiameter

func (m *Moon) SunDiameter() float64

func (*Moon) SunDistance

func (m *Moon) SunDistance() float64

func (*Moon) ZodiacSign

func (m *Moon) ZodiacSign() string

Jump to

Keyboard shortcuts

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