- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for fixedNonce (0.18 sec)
-
security/pkg/util/jwtutil_test.go
jwt string expectedExp time.Time expectedErr error }{ "jwt with expiration time": { jwt: thirdPartyJwt, expectedExp: time.Date(2020, time.April, 5, 10, 13, 54, 0, time.FixedZone("PDT", -int((7*time.Hour).Seconds()))), expectedErr: nil, }, "jwt with no expiration time": { jwt: firstPartyJwt, expectedExp: time.Time{}, expectedErr: nil, }, "invalid jwt": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0) -
src/time/format_rfc3339.go
} t.addSec(-int64(zoneOffset)) // Use local zone with the given offset if possible. if _, offset, _, _, _ := local.lookup(t.unixSec()); offset == zoneOffset { t.setLoc(local) } else { t.setLoc(FixedZone("", zoneOffset)) } } return t, true } func parseStrictRFC3339(b []byte) (Time, error) { t, ok := parseRFC3339(b, Local) if !ok { t, err := Parse(RFC3339, string(b)) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 19:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
T Time `json:"t"` } func TestTimeMarshalYAML(t *testing.T) { cases := []struct { input Time result string }{ {Time{}, "t: null\n"}, {Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"}, {Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"}, } for _, c := range cases { input := TimeHolder{c.input}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0)