2026-09-17 12:27:40 +08:00
|
|
|
// Package astro 进程级 ΔT 模型的读取、替换与恢复默认:DeltaT、SetDeltaT、DefaultDeltaT。
|
|
|
|
|
// Package astro exposes the process-wide DeltaT model: read the current function, install a custom one, or restore the built-in default.
|
2019-10-24 10:44:21 +08:00
|
|
|
package astro
|
2026-02-16 13:20:22 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|