admin_backend/unit_test.go
2025-02-14 14:51:19 +08:00

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)
}