Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for timeformat (0.22 sec)

  1. internal/amztime/parse.go

    	// Do not change this order, http time format dates
    	// are usually in http.TimeFormat however there are
    	// situations where for example aws-sdk-java doesn't
    	// send the correct format.
    	http.TimeFormat,
    	"Mon, 2 Jan 2006 15:04:05 GMT",
    }
    
    // ParseHeader parses http.TimeFormat with an acceptable
    // extension for http.TimeFormat - return time might be zero
    // if the timeStr is invalid.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. internal/config/certsinfo.go

    	// Validity information
    	buf.WriteString(color.Blue("%4sValidity\n", ""))
    	buf.WriteString(color.Bold(fmt.Sprintf("%8sNot Before: %s\n", "", cert.NotBefore.Format(http.TimeFormat))))
    	buf.WriteString(color.Bold(fmt.Sprintf("%8sNot After : %s\n", "", cert.NotAfter.Format(http.TimeFormat))))
    
    	return buf.String()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    	if objInfo.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    	}
    
    	if objInfo.VersionID != "" {
    		w.Header()[xhttp.AmzVersionID] = []string{objInfo.VersionID}
    	}
    
    	if !objInfo.Expires.IsZero() {
    		w.Header().Set(xhttp.Expires, objInfo.Expires.UTC().Format(http.TimeFormat))
    	}
    
    	if objInfo.CacheControl != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. cmd/bucket-replication_test.go

    				VersionID:         "a3348c34-c352-4498-82f0-1098e8b34df9",
    				UserDefined:       map[string]string{xhttp.MinIOReplicationResetStatus: fmt.Sprintf("%s;%s", UTCNow().AddDate(0, 0, -1).Format(http.TimeFormat), "abc")},
    				ModTime:           UTCNow().AddDate(0, 0, -2),
    			},
    			expectedSync: true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle_test.go

    		actual, err := parseRestoreObjStatus(tc.String())
    		if err != nil {
    			t.Fatalf("Test %d: parse restore object failed: %v", i+1, err)
    		}
    		if actual.ongoing != tc.ongoing || actual.expiry.Format(http.TimeFormat) != tc.expiry.Format(http.TimeFormat) {
    			t.Fatalf("Test %d: got %v expected %v", i+1, actual, tc)
    		}
    	}
    }
    
    // TestRestoreObjOnDisk tests restoreObjStatus' OnDisk method
    func TestRestoreObjOnDisk(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  6. cmd/api-headers.go

    	// set common headers
    	setCommonHeaders(w)
    
    	// Set last modified time.
    	lastModified := objInfo.ModTime.UTC().Format(http.TimeFormat)
    	w.Header().Set(xhttp.LastModified, lastModified)
    
    	// Set Etag if available.
    	if objInfo.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    	}
    
    	if objInfo.ContentType != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 04:44:00 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. internal/logger/target/console/console.go

    			}
    			if len(args) > 0 {
    				apiString += "(" + args + ")"
    			}
    		}
    	} else {
    		apiString = "INTERNAL"
    	}
    	timeString := "Time: " + entry.Time.Format(logger.TimeFormat)
    
    	var deploymentID string
    	if entry.DeploymentID != "" {
    		deploymentID = "\nDeploymentID: " + entry.DeploymentID
    	}
    
    	var requestID string
    	if entry.RequestID != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle.go

    		w.Header()[xhttp.AmzExpiration] = []string{
    			fmt.Sprintf(`expiry-date="%s", rule-id="%s"`, event.Due.Format(http.TimeFormat), event.RuleID),
    		}
    	case TransitionAction, TransitionVersionAction:
    		w.Header()[xhttp.MinIOTransition] = []string{
    			fmt.Sprintf(`transition-date="%s", rule-id="%s"`, event.Due.Format(http.TimeFormat), event.RuleID),
    		}
    	}
    }
    
    // NoncurrentVersionsExpirationLimit returns the number of noncurrent versions
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. internal/logger/logger.go

    	DisableLog = false
    	// Output allows configuring custom writer, defaults to os.Stderr
    	Output io.Writer = os.Stderr
    )
    
    var trimStrings []string
    
    // TimeFormat - logging time format.
    const TimeFormat string = "15:04:05 MST 01/02/2006"
    
    var matchingFuncNames = [...]string{
    	"http.HandlerFunc.ServeHTTP",
    	"cmd.serverMain",
    	// add more here ..
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 09:43:48 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. cmd/object-api-datatypes.go

    	Inlined bool
    
    	DataBlocks   int
    	ParityBlocks int
    }
    
    // ExpiresStr returns a stringified version of Expires header in http.TimeFormat
    func (o ObjectInfo) ExpiresStr() string {
    	var expires string
    	if !o.Expires.IsZero() {
    		expires = o.Expires.UTC().Format(http.TimeFormat)
    	}
    	return expires
    }
    
    // ArchiveInfo returns any saved zip archive meta information.
    // It will be decrypted if needed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top