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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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