astro/sun/sun_test.go

15 lines
233 B
Go
Raw Normal View History

2022-05-12 15:55:48 +08:00
package sun
import (
"fmt"
"testing"
"time"
)
func TestSun(t *testing.T) {
now := time.Now()
fmt.Println(RiseTime(now, 115, 40, 0, true))
fmt.Println(CulminationTime(now, 115))
fmt.Println(DownTime(now, 115, 40, 0, true))
}