Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TimeFormat (0.27 sec)

  1. src/net/http/server.go

    	ecr.closed.Store(true)
    	return ecr.readCloser.Close()
    }
    
    // TimeFormat is the time format to use when generating times in HTTP
    // headers. It is like [time.RFC1123] but hard-codes GMT as the time
    // zone. The time being formatted must be in UTC for Format to
    // generate the correct format.
    //
    // For parsing this time format, see [ParseTime].
    const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    	defer func() {
    		if rinfo.ReplicationStatus == replication.Completed && tgt.ResetID != "" && dobj.OpType == replication.ExistingObjectReplicationType {
    			rinfo.ResyncTimestamp = fmt.Sprintf("%s;%s", UTCNow().Format(http.TimeFormat), tgt.ResetID)
    		}
    	}()
    
    	if dobj.VersionID == "" && rinfo.PrevReplicationStatus == replication.Completed && dobj.OpType != replication.ExistingObjectReplicationType {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  3. cmd/server_test.go

    	// retrieve the info of last modification time of the object from the response header.
    	lastModified := response.Header.Get("Last-Modified")
    	// Parse it into time.Time structure.
    	t, err := time.Parse(http.TimeFormat, lastModified)
    	c.Assert(err, nil)
    
    	// make HTTP request to obtain object info.
    	// But this time set the "If-Modified-Since" header to be 10 minute more than the actual
    	// last modified time of the object.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		return
    	}
    
    	OA := new(getObjectAttributesResponse)
    
    	if opts.Versioned {
    		w.Header().Set(xhttp.AmzVersionID, objInfo.VersionID)
    	}
    
    	lastModified := objInfo.ModTime.UTC().Format(http.TimeFormat)
    	w.Header().Set(xhttp.LastModified, lastModified)
    	w.Header().Del(xhttp.ContentType)
    
    	if _, ok := opts.ObjectAttributes[xhttp.Checksum]; ok {
    		chkSums := objInfo.decryptChecksums(0, r.Header)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    		if !ok {
    			t.Error("ResponseWriter did not implement io.StringWriter")
    		}
    	default:
    		t.Error("handler was never called")
    	}
    }
    
    func TestAppendTime(t *testing.T) {
    	var b [len(TimeFormat)]byte
    	t1 := time.Date(2013, 9, 21, 15, 41, 0, 0, time.FixedZone("CEST", 2*60*60))
    	res := ExportAppendTime(b[:0], t1)
    	t2, err := ParseTime(string(res))
    	if err != nil {
    		t.Fatalf("Error parsing time: %s", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top