github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/simple/s1012/testdata/src/example.com/CheckTimeSince/time-since.go (about)

     1  package pkg
     2  
     3  import "time"
     4  
     5  func fn() {
     6  	t1 := time.Now()
     7  	_ = time.Now().Sub(t1) //@ diag(`time.Since`)
     8  	_ = time.Date(0, 0, 0, 0, 0, 0, 0, nil).Sub(t1)
     9  }