github.com/prebid/prebid-server/v2@v2.18.0/util/timeutil/time.go (about)

     1  package timeutil
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  type Time interface {
     8  	Now() time.Time
     9  }
    10  
    11  // RealTime wraps the time package for testability
    12  type RealTime struct{}
    13  
    14  func (c *RealTime) Now() time.Time {
    15  	return time.Now()
    16  }