fmt_test.go 280 B

12345678910111213
  1. package duration_fmt
  2. import (
  3. "testing"
  4. "time"
  5. )
  6. func TestFmt(t *testing.T) {
  7. timeduration := time.Now().Sub(time.Now().Add(time.Hour*301*3 + time.Minute + time.Second*3 + time.Microsecond*988))
  8. duration := Parse(timeduration).LimitFirstN(3).TrimSpace()
  9. t.Log(duration)
  10. }