This commit is contained in:
2025-02-06 11:14:33 +08:00
commit 07847a2d9e
535 changed files with 65131 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package timehelper
import (
"fmt"
"testing"
"time"
)
func Test_GetWeeHours(t *testing.T) {
fmt.Println(time.Unix(1672129500, 0))
fmt.Println(GetWeeHours(-1))
}
func TestGetTimeFromStrDate(t *testing.T) {
year, _, _ := GetTimeFromStrDate("2022-06-12")
age := GetAge(year)
fmt.Println(age)
}