prayers

package
v0.0.0-...-175ff29 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prayer

type Prayer struct {
	MethodParams   map[int][]float64
	CalcMethod     int // caculation method
	AsrJuristic    int // Juristic method for Asr
	DhuhrMinutes   int // minutes after mid-day for Dhuhr
	AdjustHighLats int // adjusting method for higher latitudes

	TimeFormat int // time format

	Lat      float64 // latitude
	Lng      float64 // longitude
	TimeZone float64 // time-zone
	JDate    float64 // Julian date

	//Times   []int
	Offsets []int
	// Time Names
	TimeName []string

	NumIterations int // number of iterations needed to compute times

}

func New

func New() *Prayer

func (*Prayer) GetPrayerTimes

func (p *Prayer) GetPrayerTimes(year int, month int, day int, latitude float64, longitude float64, tZone float64) []string

func (*Prayer) GetPrayerTimesAsObject

func (p *Prayer) GetPrayerTimesAsObject(year int, month int, day int, latitude float64, longitude float64, tZone float64) model.PrayerData

func (*Prayer) Init

func (p *Prayer) Init()

Jump to

Keyboard shortcuts

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