MCPcopy Index your code
hub / github.com/kopia/kopia / parseTimestamp

Function parseTimestamp

cli/command_snapshot_create.go:268–275  ·  view source on GitHub ↗
(timestamp string)

Source from the content-addressed store, hash-verified

266}
267
268func parseTimestamp(timestamp string) (time.Time, error) {
269 if timestamp == "" {
270 return time.Time{}, nil
271 }
272
273 //nolint:wrapcheck
274 return time.Parse(timeFormat, timestamp)
275}
276
277func startTimeAfterEndTime(startTime, endTime time.Time) bool {
278 return !startTime.IsZero() &&

Callers 2

validateStartEndTimeFunction · 0.85
snapshotSingleSourceMethod · 0.85

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected