Versions in this module Expand all Collapse all v1 v1.0.1 Dec 25, 2024 v1.0.0 Dec 18, 2024 Changes in this version + type AsrConvention int + const Hanafi + const Shafii + type Config struct + AsrConvention AsrConvention + Corrections ScheduleCorrections + Elevation float64 + HighLatitudeAdapter HighLatitudeAdapter + Latitude float64 + Longitude float64 + PreciseToSeconds bool + Timezone *time.Location + TwilightConvention *TwilightConvention + type HighLatitudeAdapter func(cfg Config, year int, month int, currentSchedules []Schedule) []Schedule + func AlwaysMecca() HighLatitudeAdapter + func AngleBased() HighLatitudeAdapter + func LocalRelativeEstimation() HighLatitudeAdapter + func Mecca() HighLatitudeAdapter + func MiddleNight() HighLatitudeAdapter + func NearestDay() HighLatitudeAdapter + func NearestLatitude() HighLatitudeAdapter + func NearestLatitudeAsIs() HighLatitudeAdapter + func OneSeventhNight() HighLatitudeAdapter + func ShariNormalDay() HighLatitudeAdapter + type Schedule struct + Asr time.Time + Date string + Fajr time.Time + IsNormal bool + Isha time.Time + Maghrib time.Time + Sunrise time.Time + Zuhr time.Time + func Calculate(cfg Config, year int, month int) ([]Schedule, error) + type ScheduleCorrections struct + Asr time.Duration + Fajr time.Duration + Isha time.Duration + Maghrib time.Duration + Sunrise time.Duration + Zuhr time.Duration + type TwilightConvention struct + FajrAngle float64 + IshaAngle float64 + MaghribDuration time.Duration + func Algerian() *TwilightConvention + func AstronomicalTwilight() *TwilightConvention + func Diyanet() *TwilightConvention + func Egypt() *TwilightConvention + func EgyptBis() *TwilightConvention + func France15() *TwilightConvention + func France18() *TwilightConvention + func Gulf() *TwilightConvention + func ISNA() *TwilightConvention + func JAKIM() *TwilightConvention + func Jafari() *TwilightConvention + func Karachi() *TwilightConvention + func Kemenag() *TwilightConvention + func MUIS() *TwilightConvention + func MWL() *TwilightConvention + func Tehran() *TwilightConvention + func Tunisia() *TwilightConvention + func UOIF() *TwilightConvention + func UmmAlQura() *TwilightConvention