月球修正

master v0.0.1
兔子 3 years ago
parent 97c017be08
commit ebdcf65c46
Signed by: b612
GPG Key ID: 481225A74DEB62A1

@ -124,10 +124,10 @@ func Zenith(date time.Time, lon, lat float64) float64 {
// date, 世界时(忽略此处时区) // date, 世界时(忽略此处时区)
// lon经度东正西负 // lon经度东正西负
// lat纬度北正南负 // lat纬度北正南负
func CulminationTime(date time.Time, lon, lat float64) float64 { func CulminationTime(date time.Time, lon, lat float64) time.Time {
jde := basic.Date2JDE(date) jde := basic.Date2JDE(date)
_, loc := date.Zone() _, loc := date.Zone()
return basic.MoonCulminationTime(jde, lon, lat, float64(loc)/3600.0) return basic.JDE2DateByZone(basic.MoonCulminationTime(jde, lon, lat, float64(loc)/3600.0), date.Location(), true)
} }
// RiseTime 月亮升起时间 // RiseTime 月亮升起时间

Loading…
Cancel
Save