Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for mktime (0.19 sec)

  1. cmd/erasure-metadata.go

    func (fi *FileInfo) AddObjectPart(partNumber int, partETag string, partSize, actualSize int64, modTime time.Time, idx []byte, checksums map[string]string) {
    	partInfo := ObjectPartInfo{
    		Number:     partNumber,
    		ETag:       partETag,
    		Size:       partSize,
    		ActualSize: actualSize,
    		ModTime:    modTime,
    		Index:      idx,
    		Checksums:  checksums,
    	}
    
    	// Update part info if it already exists.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  2. cmd/bucket-replication.go

    	startTime := time.Now()
    	return func(err error) {
    		duration := time.Since(startTime)
    		if globalTrace.NumSubscribers(madmin.TraceReplicationResync) > 0 {
    			globalTrace.Publish(replicationResyncTrace(resyncID, startTime, duration, path, err))
    		}
    	}
    }
    
    func replicationResyncTrace(resyncID string, startTime time.Time, duration time.Duration, path string, err error) madmin.TraceInfo {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  3. internal/config/cache/remote.go

    	"regexp"
    	"strconv"
    	"time"
    
    	"github.com/minio/minio/internal/amztime"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    //go:generate msgp -file=$GOFILE
    
    // ObjectInfo represents the object information cached remotely
    type ObjectInfo struct {
    	Key        string    `json:"key"`
    	Bucket     string    `json:"bucket"`
    	ETag       string    `json:"etag"`
    	ModTime    time.Time `json:"modTime"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. internal/amztime/iso8601_time.go

    )
    
    // ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec.
    //
    // This function is needed to avoid a Go's float64 precision bug, where Go avoids
    // padding the extra '0' before the timezone.
    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. cmd/erasure-healing-common_test.go

    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 1).UTC(),
    			},
    			time.Unix(0, 3).UTC(),
    			3,
    		},
    		{
    			// 2. Tests common time obtained when all elements are equal.
    			[]time.Time{
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  6. src/archive/zip/reader.go

    			}
    			fieldBuf.uint32()              // AcTime (ignored)
    			ts := int64(fieldBuf.uint32()) // ModTime since Unix epoch
    			modified = time.Unix(ts, 0)
    		case extTimeExtraID:
    			if len(fieldBuf) < 5 || fieldBuf.uint8()&1 == 0 {
    				continue parseExtras
    			}
    			ts := int64(fieldBuf.uint32()) // ModTime since Unix epoch
    			modified = time.Unix(ts, 0)
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. docs/debugging/pprofgoparser/main.go

    	"path"
    	"regexp"
    	"strconv"
    	"strings"
    	"time"
    )
    
    var (
    	goroutinesRE, searchRE *regexp.Regexp
    
    	// User input flags
    	searchText           string
    	goTime, less, margin time.Duration
    )
    
    func init() {
    	flag.DurationVar(&less, "less", 0, "goroutine waiting less than the specified time")
    	flag.DurationVar(&goTime, "time", 0, "goroutine waiting for exactly the specified time")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-utils_test.go

    			}},
    		},
    		MarkDeleted:      false,
    		NumVersions:      1,
    		SuccessorModTime: time.Time{},
    	}
    	xl := xlMetaV2{}
    	var versions []FileInfo
    	var freeVersionIDs []string
    	for i := 0; i < 5; i++ {
    		fi := basefi
    		fi.VersionID = mustGetUUID()
    		fi.DataDir = mustGetUUID()
    		fi.ModTime = basefi.ModTime.Add(time.Duration(i) * time.Second)
    		if err := xl.AddVersion(fi); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 02 14:49:24 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. docs/debugging/inspect/export.go

    	return
    }
    
    func (z xlMetaV2VersionHeaderV2) MarshalJSON() (o []byte, e error) {
    	tmp := struct {
    		VersionID string
    		ModTime   time.Time
    		Signature string
    		Type      uint8
    		Flags     uint8
    	}{
    		VersionID: hex.EncodeToString(z.VersionID[:]),
    		ModTime:   time.Unix(0, z.ModTime),
    		Signature: hex.EncodeToString(z.Signature[:]),
    		Type:      z.Type,
    		Flags:     z.Flags,
    	}
    	return json.Marshal(tmp)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  10. internal/amztime/parse_test.go

    // Package amztime implements AWS specific time parsing and deviations
    package amztime
    
    import (
    	"errors"
    	"testing"
    	"time"
    )
    
    func TestParse(t *testing.T) {
    	type testCase struct {
    		expectedErr  error
    		expectedTime time.Time
    		timeStr      string
    	}
    	testCases := []testCase{
    		{
    			ErrMalformedDate,
    			time.Time{},
    			"Tue Sep  6 07:10:23 PM PDT 2022",
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 07 14:24:54 GMT 2022
    - 1.6K bytes
    - Viewed (0)
Back to top