add deltaT func to astro.go

This commit is contained in:
兔子 2026-02-16 13:20:22 +08:00
parent 27b7e4ab77
commit add07bbd85
Signed by: b612
GPG Key ID: 99DD2222B612B612
2 changed files with 320 additions and 306 deletions

View File

@ -1,2 +1,16 @@
// Package astro // Package astro
package astro package astro
import "b612.me/astro/basic"
func DeltaT() func(float64, bool) float64 {
return basic.GetDeltaTFn()
}
func SetDeltaT(deltaT func(float64, bool) float64) {
basic.SetDeltaTFn(deltaT)
}
func DefaultDeltaT() func(float64, bool) float64 {
return basic.DefaultDeltaTv2
}