1
This commit is contained in:
18
pkg/utility/timehelper/timehelper_test.go
Normal file
18
pkg/utility/timehelper/timehelper_test.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user