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.
lal/pkg/rtprtcp/ntp_test.go

24 lines
521 B
Go

// Copyright 2020, Chef. All rights reserved.
// https://github.com/q191201771/lal
//
// Use of this source code is governed by a MIT-style license
// that can be found in the License file.
//
// Author: Chef (191201771@qq.com)
package rtprtcp_test
import (
"testing"
"time"
"github.com/q191201771/lal/pkg/rtprtcp"
)
func TestMswLsw2UnixNano(t *testing.T) {
u := rtprtcp.MswLsw2UnixNano(3805600902, 2181843386)
rtprtcp.Log.Debug(u)
tt := time.Unix(int64(u/1e9), int64(u%1e9))
rtprtcp.Log.Debug(tt.String())
}