Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for TimeFormat (0.24 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go

    const badFormat = "2006-02-01"
    const goodFormat = "2006-01-02"
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "timeformat",
    	Doc:      analysisutil.MustExtractDoc(doc, "timeformat"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/timeformat",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/doc.go

    // license that can be found in the LICENSE file.
    
    // Package timeformat defines an Analyzer that checks for the use
    // of time.Format or time.Parse calls with a bad format.
    //
    // # Analyzer timeformat
    //
    // timeformat: check for calls of (time.Time).Format or time.Parse with 2006-02-01
    //
    // The timeformat checker looks for time formats with the 2006-02-01 (yyyy-dd-mm)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 663 bytes
    - Viewed (0)
  3. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. pilot/pkg/autoregistration/controller.go

    	if timestamp, ok := wle.Annotations[annotation.IoIstioDisconnectedAt.Name]; ok {
    		disconnTime, _ := time.Parse(timeFormat, timestamp)
    		if conTime.Before(disconnTime) {
    			// we slowly processed a connect and disconnected before getting to this point
    			return false, nil
    		}
    	}
    
    	lastConTime, _ := time.Parse(timeFormat, wle.Annotations[annotation.IoIstioConnectedAt.Name])
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  5. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  6. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/vet/main.go

    	"golang.org/x/tools/go/analysis/passes/structtag"
    	"golang.org/x/tools/go/analysis/passes/testinggoroutine"
    	"golang.org/x/tools/go/analysis/passes/tests"
    	"golang.org/x/tools/go/analysis/passes/timeformat"
    	"golang.org/x/tools/go/analysis/passes/unmarshal"
    	"golang.org/x/tools/go/analysis/passes/unreachable"
    	"golang.org/x/tools/go/analysis/passes/unsafeptr"
    	"golang.org/x/tools/go/analysis/passes/unusedresult"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/flagdefs.go

    	"slog":             true,
    	"stdmethods":       true,
    	"stdversion":       true,
    	"stringintconv":    true,
    	"structtag":        true,
    	"testinggoroutine": true,
    	"tests":            true,
    	"timeformat":       true,
    	"unmarshal":        true,
    	"unreachable":      true,
    	"unsafeptr":        true,
    	"unusedresult":     true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. internal/config/cache/remote.go

    func (oi ObjectInfo) WriteHeaders(w http.ResponseWriter, preamble, statusCode func()) {
    	preamble()
    
    	if !oi.ModTime.IsZero() {
    		w.Header().Set(xhttp.LastModified, oi.ModTime.UTC().Format(http.TimeFormat))
    	}
    
    	if oi.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + oi.ETag + "\""}
    	}
    
    	if oi.Expires != "" {
    		w.Header().Set(xhttp.Expires, oi.Expires)
    	}
    
    	if oi.CacheControl != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top