Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for adddot1 (0.12 sec)

  1. src/time/genzabbrs.go

    // for location l.
    func getAbbrs(l *time.Location) (st, dt string) {
    	t := time.Date(time.Now().Year(), 0, 1, 0, 0, 0, 0, l)
    	abbr1, off1 := t.Zone()
    	for i := 0; i < 12; i++ {
    		t = t.AddDate(0, 1, 0)
    		abbr2, off2 := t.Zone()
    		if abbr1 != abbr2 {
    			if off2-off1 < 0 { // southern hemisphere
    				abbr1, abbr2 = abbr2, abbr1
    			}
    			return abbr1, abbr2
    		}
    	}
    	return abbr1, abbr1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        ).isEqualTo(10L)
        assertThat(
          Headers.Builder()
            .add("abc", "def")
            .add("ghi", "jkl")
            .build()
            .byteCount(),
        ).isEqualTo(20L)
      }
    
      @Test fun addDate() {
        val expected = Date(0L)
        val headers =
          Headers.Builder()
            .add("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. cmd/signature-v4_test.go

    			expected: ErrUnsignedHeaders,
    		},
    		// (4) Should give an expired request if it has expired.
    		{
    			queryParams: map[string]string{
    				"X-Amz-Algorithm":      signV4Algorithm,
    				"X-Amz-Date":           now.AddDate(0, 0, -2).Format(iso8601Format),
    				"X-Amz-Expires":        "60",
    				"X-Amz-Signature":      "badsignature",
    				"X-Amz-SignedHeaders":  "host;x-amz-content-sha256;x-amz-date",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

            } catch (final Exception e) {
                logger.warn("Failed to update {} settings.", index, e);
            }
    
            return false;
        }
    
        public static boolean addData(final Client client, final String index, final String id, final String source) {
            try {
                final IndexRequest indexRequest = new IndexRequest(index).id(id).source(source, XContentType.JSON);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/time/time.go

    	}
    	return t.Sub(Now())
    }
    
    // AddDate returns the time corresponding to adding the
    // given number of years, months, and days to t.
    // For example, AddDate(-1, 2, 3) applied to January 1, 2011
    // returns March 4, 2010.
    //
    // Note that dates are fundamentally coupled to timezones, and calendrical
    // periods like days don't have fixed durations. AddDate uses the Location of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  6. pkg/serviceaccount/legacy.go

    	}, nil
    }
    
    func (v *legacyValidator) patchSecretWithLastUsedDate(ctx context.Context, secret *v1.Secret) {
    	now := time.Now().UTC()
    	today := now.Format("2006-01-02")
    	tomorrow := now.AddDate(0, 0, 1).Format("2006-01-02")
    	lastUsed := secret.Labels[LastUsedLabelKey]
    	if lastUsed != today && lastUsed != tomorrow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/issue29198.gox

     func (d <type 26>) Minutes () <type -10>;
     func (d <type 26>) Hours () <type -10>;
    >;
     func (t <esc:0x12> <type 12>) Add (d <type 26>) <type 12>;
     func (t <esc:0x12> <type 12>) UTC () <type 12>;
     func (t <type 12>) AddDate (years <type -11>, months <type -11>, days <type -11>) <type 12>;
     func (t <esc:0x1> <type 12>) MarshalBinary () (? <type 27 [] <type -20>>, ? <type -19>);
     func (t <esc:0x1> <type 12>) Nanosecond () <type -11>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 23:01:16 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    			// Do not change any configuration
    			// upon NTP failure.
    			return r
    		}
    
    		if config.Rule.DefaultRetention.Days != nil {
    			r.Validity = t.AddDate(0, 0, int(*config.Rule.DefaultRetention.Days)).Sub(t)
    		} else {
    			r.Validity = t.AddDate(int(*config.Rule.DefaultRetention.Years), 0, 0).Sub(t)
    		}
    	}
    
    	return r
    }
    
    // Maximum 4KiB size per object lock config.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    					FieldPath: "spec.containers{foo}",
    				},
    				Reason:         "Event Reason",
    				Message:        "Message Data",
    				FirstTimestamp: metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -3)},
    				LastTimestamp:  metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -2)},
    				Count:          6,
    				Type:           api.EventTypeNormal,
    				ObjectMeta:     metav1.ObjectMeta{Name: "event1"},
    			},
    			options: printers.GenerateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. pkg/proxy/util/nfacct/nfacct_linux_test.go

    	response [][]byte
    	err      error
    }
    
    // Serialize is part of request interface.
    func (fr *fakeRequest) Serialize() []byte { return nil }
    
    // AddData is part of request interface.
    func (fr *fakeRequest) AddData(data nl.NetlinkRequestData) {
    	fr.data = append(fr.data, data)
    }
    
    // AddRawData is part of request interface.
    func (fr *fakeRequest) AddRawData(_ []byte) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top