MCPcopy
hub / github.com/perkeep/perkeep / SetModTime

Method SetModTime

pkg/schema/blob.go:553–556  ·  view source on GitHub ↗

SetModTime sets the "unixMtime" field.

(t time.Time)

Source from the content-addressed store, hash-verified

551
552// SetModTime sets the "unixMtime" field.
553func (bb *Builder) SetModTime(t time.Time) *Builder {
554 bb.m["unixMtime"] = RFC3339FromTime(t)
555 return bb
556}
557
558// CapCreationTime caps the "unixCtime" field to be less or equal than "unixMtime"
559func (bb *Builder) CapCreationTime() *Builder {

Callers 8

uploadNodeRegularFileMethod · 0.95
UploadFileMethod · 0.80
searchDescribeSetupFunction · 0.80
UploadFileMethod · 0.80
UploadDirMethod · 0.80
populateFunction · 0.80
packFunction · 0.80

Calls 1

RFC3339FromTimeFunction · 0.85

Tested by 2

searchDescribeSetupFunction · 0.64
populateFunction · 0.64