- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for TimeFormat (0.17 sec)
-
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) -
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) -
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) -
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) -
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) -
cmd/bucket-replication_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Sep 16 09:28:06 UTC 2023 - 12.2K bytes - Viewed (0) -
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) -
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) -
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) -
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)