You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
333 B
Go
25 lines
333 B
Go
5 years ago
|
package basic
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func Test_JDECALC(t *testing.T) {
|
||
|
i := 10
|
||
|
for i > 0 {
|
||
|
fmt.Printf("%.18f\n", GetNowJDE())
|
||
|
time.Sleep(time.Second)
|
||
|
i--
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func Test_TDUT(t *testing.T) {
|
||
|
fmt.Printf("%.18f\n", DeltaT(2119.5, false))
|
||
|
}
|
||
|
|
||
|
func Test_JDE2(t *testing.T) {
|
||
|
fmt.Println(JDE2Date(2458868.500))
|
||
|
}
|