- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 113 for mktime (0.2 sec)
-
cmd/server_test.go
// Parse the bucket modtime creationTime, err := time.Parse(iso8601TimeFormat, createdBucket.CreationDate) c.Assert(err, nil) // Check if bucket modtime is consistent (not less than current time and not late more than 5 minutes) timeNow := time.Now().UTC() c.Assert(creationTime.Before(timeNow), true) c.Assert(timeNow.Sub(creationTime) < time.Minute*5, true) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 108K bytes - Viewed (0) -
cmd/sts-handlers_test.go
}, } entRes.Timestamp = time.Time{} if !reflect.DeepEqual(expected, entRes) { c.Fatalf("policy entities mismatch: expected: %v, got: %v", expected, entRes) } dn := "uid=svc.algorithm,ou=swengg,dc=min,dc=io" res, err := s.adm.ListAccessKeysLDAP(ctx, dn, "") if err != nil { c.Fatalf("Unable to list access keys: %v", err) } epochTime := time.Unix(0, 0).UTC()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 15:50:16 GMT 2024 - 85.7K bytes - Viewed (0) -
cmd/object-handlers-common.go
return false } // returns true if object was modified after givenTime. func ifModifiedSince(objTime time.Time, givenTime time.Time) bool { // The Date-Modified header truncates sub-second precision, so // use mtime < t+1s instead of mtime <= t to check for unmodified. return objTime.After(givenTime.Add(1 * time.Second)) } // canonicalizeETag returns ETag with leading and trailing double-quotes removed, // if any present
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 09 08:17:49 GMT 2024 - 14.6K bytes - Viewed (0) -
src/archive/tar/reader_test.go
"mtime": "1350244992.023960108", "atime": "1350244992.023960108", "ctime": "1350244992.023960108", }, Format: FormatPAX, }, { Name: "a/b", Mode: 0777, Uid: 1000, Gid: 1000, Uname: "shane", Gname: "shane", Size: 0, ModTime: time.Unix(1350266320, 910238425), ChangeTime: time.Unix(1350266320, 910238425),
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
src/archive/tar/reader.go
// atime and ctime fields (e.g., when they are valid octal strings), // then it is impossible to distinguish between a valid GNU file // and an invalid pre-Go1.8 file. // // See https://golang.org/issues/12594 // See https://golang.org/issues/21005 if p2.err != nil { hdr.AccessTime, hdr.ChangeTime = time.Time{}, time.Time{} ustar := tr.blk.toUSTAR()
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 08 01:59:14 GMT 2024 - 26.8K bytes - Viewed (0) -
cmd/admin-handlers.go
name string size int64 mode os.FileMode modTime time.Time isDir bool sys interface{} } func (f dummyFileInfo) Name() string { return f.name } func (f dummyFileInfo) Size() int64 { return f.size } func (f dummyFileInfo) Mode() os.FileMode { return f.mode } func (f dummyFileInfo) ModTime() time.Time { return f.modTime } func (f dummyFileInfo) IsDir() bool { return f.isDir }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 29 17:39:04 GMT 2024 - 97.8K bytes - Viewed (2) -
cmd/erasure-multipart.go
} } delete(fi.Metadata, hash.MinIOMultipartChecksum) // Not needed in final object. // Save the final object size and modtime. fi.Size = objectSize fi.ModTime = opts.MTime if opts.MTime.IsZero() { fi.ModTime = UTCNow() } // Save successfully calculated md5sum. // for replica, newMultipartUpload would have already sent the replication ETag
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 28 17:53:50 GMT 2024 - 43K bytes - Viewed (0) -
internal/amztime/iso8601_time_test.go
package amztime import ( "testing" "time" ) func TestISO8601Format(t *testing.T) { testCases := []struct { date time.Time expectedOutput string }{ { date: time.Date(2009, time.November, 13, 4, 51, 1, 940303531, time.UTC), expectedOutput: "2009-11-13T04:51:01.940Z", }, {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Dec 12 18:28:30 GMT 2022 - 1.8K bytes - Viewed (0) -
cmd/s3-zip-handlers.go
} return } // New object info fileObjInfo := ObjectInfo{ Bucket: bucket, Name: object, Size: int64(file.UncompressedSize64), ModTime: zipObjInfo.ModTime, ContentType: mime.TypeByExtension(filepath.Ext(object)), } var rc io.ReadCloser if file.UncompressedSize64 > 0 { // There may be number of header bytes before the content.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 09 10:41:25 GMT 2024 - 15.8K bytes - Viewed (0) -
cmd/erasure-healing-common.go
} } // Return the collected common max time, with maxima return time.Unix(0, latest).UTC(), maxima } // commonTime returns a maximally occurring time from a list of time if it // occurs >= quorum, else return timeSentinel func commonTime(modTimes []time.Time, quorum int) time.Time { if modTime, count := commonTimeAndOccurrence(modTimes, 0); count >= quorum { return modTime } return timeSentinel }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 10.8K bytes - Viewed (0)