- package duration_fmt
- import (
- "testing"
- "time"
- )
- func TestFmt(t *testing.T) {
- timeduration := time.Now().Sub(time.Now().Add(time.Hour*301*3 + time.Minute + time.Second*3 + time.Microsecond*988))
- duration := Parse(timeduration).LimitFirstN(3).TrimSpace()
- t.Log(duration)
- }
|