mirror of
https://gitee.com/zhangsken/aliyunpan.git
synced 2026-10-16 10:29:42 +08:00
26 lines
476 B
Go
26 lines
476 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestConvertTime(t *testing.T) {
|
|
seconds := time.Duration(50) * time.Second
|
|
fmt.Println(ConvertTime(seconds))
|
|
|
|
seconds = time.Duration(150) * time.Second
|
|
fmt.Println(ConvertTime(seconds))
|
|
|
|
seconds = time.Duration(3600) * time.Second
|
|
fmt.Println(ConvertTime(seconds))
|
|
|
|
seconds = time.Duration(1246852) * time.Second
|
|
fmt.Println(ConvertTime(seconds))
|
|
}
|
|
|
|
func TestUuidStr(t *testing.T) {
|
|
fmt.Println(UuidStr())
|
|
}
|