MCPcopy
hub / github.com/kopia/kopia / StartTimestamp

Method StartTimestamp

notification/notifydata/error_info.go:26–28  ·  view source on GitHub ↗

StartTimestamp returns the start time of the operation that caused the error.

()

Source from the content-addressed store, hash-verified

24
25// StartTimestamp returns the start time of the operation that caused the error.
26func (e *ErrorInfo) StartTimestamp() time.Time {
27 return e.StartTime.Truncate(time.Second)
28}
29
30// EndTimestamp returns the end time of the operation that caused the error.
31func (e *ErrorInfo) EndTimestamp() time.Time {

Callers 3

DurationMethod · 0.95
TestNewErrorInfoFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestNewErrorInfoFunction · 0.76