Logo
Explore Help
Sign In
b612/astro
1
1
Fork 0
You've already forked astro
Code Issues Pull Requests Projects Releases 5 Wiki Activity
astro/venus/venus_test.go

15 lines
263 B
Go
Raw Normal View History

change delta T formula and add planet phenomena function
2022-05-16 20:42:15 +08:00
package venus
import (
"fmt"
"testing"
"time"
)
func TestVenus(t *testing.T) {
date := time.Now().Add(time.Hour * -24)
fmt.Println(CulminationTime(date, 115))
fmt.Println(RiseTime(date, 115, 23, 0, false))
- fix: Correct sun.TrueBo calculation, now using basic.HSunTrueBo for correct solar latitude - fix: Rename GetSunDownTime to GetSunSetTime in basic/sun.go and update related calls/outputs - fix: Update test cases to use new method and error constant names - improve: Rename all DownTime/Down functions to SetTime/Set for consistency - improve: Standardize ERR_XXX_NEVER_DOWN error constants to ERR_XXX_NEVER_SET, with ERR_XXX_NEVER_DOWN kept as compatibility alias - improve: More standard naming for interfaces and errors to improve maintainability and readability
2025-09-08 10:59:04 +08:00
fmt.Println(SetTime(date, 115, 23, 0, false))
change delta T formula and add planet phenomena function
2022-05-16 20:42:15 +08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 43ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API