16 lines
252 B
Go
16 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestXxx(t *testing.T) {
|
|
now := time.Now()
|
|
next := now.AddDate(0, 0, 1).Truncate(24 * time.Hour)
|
|
fmt.Println(next.Unix())
|
|
duration := next.Sub(now) + 3600*time.Second
|
|
fmt.Println(duration)
|
|
}
|