Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 170 for mktime (0.2 sec)

  1. cmd/erasure-server-pool.go

    	// content that may have been created, we always serve
    	// the latest object.
    	sort.Slice(poolObjInfos, func(i, j int) bool {
    		mtime1 := poolObjInfos[i].ObjInfo.ModTime
    		mtime2 := poolObjInfos[j].ObjInfo.ModTime
    		return mtime1.After(mtime2)
    	})
    
    	defPool := PoolObjInfo{Index: -1}
    	for _, pinfo := range poolObjInfos {
    		// skip all objects from suspended pools if asked by the
    		// caller.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. schema/field_test.go

    		name          = "advanced_data_type_valuer_and_setter"
    		deletedAt     = mytime(time.Now())
    		isAdmin       = mybool(false)
    		user          = AdvancedDataTypeUser{
    			ID:           sql.NullInt64{Int64: 10, Valid: true},
    			Name:         &sql.NullString{String: name, Valid: true},
    			Birthday:     sql.NullTime{Time: time.Now(), Valid: true},
    			RegisteredAt: mytime(time.Now()),
    			DeletedAt:    &deletedAt,
    			Active:       mybool(true),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/object-multipart-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if r.Header.Get(xMinIOExtract) == "true" && HasSuffix(object, archiveExt) {
    		opts := ObjectOptions{VersionID: objInfo.VersionID, MTime: objInfo.ModTime}
    		if _, err := updateObjectMetadataWithZipInfo(ctx, objectAPI, bucket, object, opts); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    		// to avoid multiple pool leaders herding to update around the same
    		// time.
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		randSleepFor := func() time.Duration {
    			return 5*time.Second + time.Duration(float64(5*time.Second)*r.Float64())
    		}
    
    		timer := time.NewTimer(randSleepFor())
    		defer timer.Stop()
    
    		var (
    			quit     bool
    			traceMsg string
    		)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    				PAXRecords: map[string]string{"path": ""}, // Should delete "path", but keep "mtime"
    			}, nil},
    			testHeader{Header{
    				Typeflag: TypeReg, Name: "file3",
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeReg,
    				Name:       "file4",
    				ModTime:    time.Unix(1400000000, 0),
    				PAXRecords: map[string]string{"mtime": "1400000000"},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top