mirror of
https://github.com/wonli/aqi.git
synced 2025-09-27 04:56:31 +08:00
16 lines
180 B
Go
16 lines
180 B
Go
package format
|
|
|
|
import (
|
|
"log"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestTimeSince(t *testing.T) {
|
|
past := time.Now()
|
|
time.Sleep(time.Millisecond)
|
|
a := TimeSince(past)
|
|
|
|
log.Println(a)
|
|
}
|