Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GMT (0.14 sec)

  1. internal/bucket/lifecycle/expiration.go

    	errLifecycleInvalidDeleteMarker = Errorf("Delete marker cannot be specified with Days or Date in a Lifecycle Expiration Policy")
    	errLifecycleDateNotMidnight     = Errorf("'Date' must be at midnight GMT")
    	errLifecycleInvalidDeleteAll    = Errorf("Days (positive integer) should be present inside Expiration with ExpiredObjectAllVersions.")
    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  2. internal/bucket/lifecycle/lifecycle.go

    // modification time plus the number of transition/restore days.
    //
    //	e.g. If the object modtime is `Thu May 21 13:42:50 GMT 2020` and the object should
    //	    transition in 1 day, then the expected transition time is `Fri, 23 May 2020 00:00:00 GMT`
    func ExpectedExpiryTime(modTime time.Time, days int) time.Time {
    	if days == 0 {
    		return modTime
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  3. internal/amztime/parse.go

    	// 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.
    func ParseHeader(timeStr string) (time.Time, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/transition.go

    	errTransitionInvalid         = Errorf("Exactly one of Days (0 or greater) or Date (positive ISO 8601 format) should be present in Transition.")
    	errTransitionDateNotMidnight = Errorf("'Date' must be at midnight GMT")
    )
    
    // TransitionDate is a embedded type containing time.Time to unmarshal
    // Date in Transition
    type TransitionDate struct {
    	time.Time
    }
    
    // UnmarshalXML parses date from Transition and validates date format
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle_test.go

    		expectedStatus restoreObjStatus
    		expectedErr    error
    	}{
    		{
    			// valid: represents a restored object, 'pending' expiry.
    			restoreHdr: `ongoing-request="false", expiry-date="Fri, 21 Dec 2012 00:00:00 GMT"`,
    			expectedStatus: restoreObjStatus{
    				ongoing: false,
    				expiry:  time.Date(2012, 12, 21, 0, 0, 0, 0, time.UTC),
    			},
    			expectedErr: nil,
    		},
    		{
    			// valid: represents an ongoing restore object request.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue May 31 09:57:57 GMT 2022
    - 7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue21897.go

    }
    
    var xCFNumberRef C.CFNumberRef
    
    func testCFDateRef() {
    	xCFDateRef = C.CFDateCreate(C.kCFAllocatorSystemDefault, 0) // 0 value is 1 Jan 2001 00:00:00 GMT
    	//fmt.Printf("CFDateRef: %x\n", uintptr(unsafe.Pointer(xCFDateRef)))
    }
    
    var xCFDateRef C.CFDateRef
    
    func testCFBooleanRef() {
    	xCFBooleanRef = C.kCFBooleanFalse
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    			bucketName:         bucketName,
    			newObjectName:      "newObject1",
    			copySourceHeader:   url.QueryEscape(SlashSeparator + bucketName + SlashSeparator + objectName),
    			copyModifiedHeader: "Mon, 02 Jan 2006 15:04:05 GMT",
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusOK,
    		},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top