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.

15 lines
314 B
Go

package msg_handler
import (
"fmt"
"github.com/jinzhu/now"
"live-gateway/pkg/timex"
"testing"
)
func TestTime(t *testing.T) {
fmt.Println(timex.TimestampToTime(1653555128))
last := now.BeginningOfDay().AddDate(0, 1, 0)
fmt.Println(last, last.Unix(), last.UnixMilli(), last.UnixMicro(), last.UnixNano())
}