MCPcopy
hub / github.com/kopia/kopia / NewClockTimeWithOffset

Function NewClockTimeWithOffset

internal/faketime/faketime.go:76–78  ·  view source on GitHub ↗

NewClockTimeWithOffset creates a ClockTimeWithOffset with the given start time.

(offset time.Duration)

Source from the content-addressed store, hash-verified

74
75// NewClockTimeWithOffset creates a ClockTimeWithOffset with the given start time.
76func NewClockTimeWithOffset(offset time.Duration) *ClockTimeWithOffset {
77 return &ClockTimeWithOffset{offset: offset}
78}
79
80// NowFunc returns a time provider function for t.
81func (t *ClockTimeWithOffset) NowFunc() func() time.Time {

Calls

no outgoing calls