Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fixedNonce (0.47 sec)

  1. internal/s3select/sql/timestampfuncs_test.go

    package sql
    
    import (
    	"testing"
    	"time"
    )
    
    func TestParseAndDisplaySQLTimestamp(t *testing.T) {
    	beijing := time.FixedZone("", int((8 * time.Hour).Seconds()))
    	fakeLosAngeles := time.FixedZone("", -int((8 * time.Hour).Seconds()))
    	cases := []struct {
    		s string
    		t time.Time
    	}{
    		{"2010T", time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC)},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/go/internal/gccgoimporter/testdata/time.gox

    const December <type 18> = 12 ;
    type <type 1>;
    const February <type 18> = 2 ;
    func FixedZone (name <type -16>, offset <type -11>) <type 15>;
    const Friday <type 19> = 5 ;
    const Hour <type 1> = 3600000000000 ;
    const January <type 18> = 1 ;
    const July <type 18> = 7 ;
    const June <type 18> = 6 ;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  5. 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)
Back to top