mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
15 lines
224 B
Go
Executable File
15 lines
224 B
Go
Executable File
package libol
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestTime(t *testing.T) {
|
|
ti, _ := time.Parse(time.UnixDate, "Mon Nov 30 21:45:49 CST 2020")
|
|
fmt.Println(ti)
|
|
fmt.Println(time.Since(ti))
|
|
fmt.Println(time.Now())
|
|
}
|