Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,536 for Time (0.16 sec)

  1. internal/amztime/iso8601_time_test.go

    package amztime
    
    import (
    	"testing"
    	"time"
    )
    
    func TestISO8601Format(t *testing.T) {
    	testCases := []struct {
    		date           time.Time
    		expectedOutput string
    	}{
    		{
    			date:           time.Date(2009, time.November, 13, 4, 51, 1, 940303531, time.UTC),
    			expectedOutput: "2009-11-13T04:51:01.940Z",
    		},
    		{
    			date:           time.Date(2009, time.November, 13, 4, 51, 1, 901303531, time.UTC),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Dec 12 18:28:30 GMT 2022
    - 1.8K bytes
    - Viewed (0)
  2. .cm/estimated_time_to_review.cm

    on:
      - pr_created
      - commit
      - comment_added
    
    automations:
    
      # Add a label that indicates how many minutes it will take to review the PR and categorizes it
      estimated_time_to_review:
        if:
          - {{ ('estimated_time_to_review' | isEnabledAutomation(pr)) }}
        run:
          - action: add-label@v1
            # etr is defined in the last section of this example
            args:
              label: "{{ calc.etr }} min review"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. 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)},
    		{"2010-02T", time.Date(2010, 2, 1, 0, 0, 0, 0, time.UTC)},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. cmd/update-notifier_test.go

    		{-72 * time.Hour, "another_update_url", ""},
    		{0, "another_update_url", ""},
    		{time.Hour, "", ""},
    		{0 * time.Second, "my_download_url", "now"},
    		{1 * time.Second, "my_download_url", "1 second before the latest release"},
    		{37 * time.Second, "my_download_url", "37 seconds before the latest release"},
    		{60 * time.Second, "my_download_url", "1 minute before the latest release"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. docs_src/middleware/tutorial001.py

    import time
    
    from fastapi import FastAPI, Request
    
    app = FastAPI()
    
    
    @app.middleware("http")
    async def add_process_time_header(request: Request, call_next):
        start_time = time.time()
        response = await call_next(request)
        process_time = time.time() - start_time
        response.headers["X-Process-Time"] = str(process_time)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 349 bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    			t.Log("Client Context canceled. err state:", err)
    			clientCanceled <- time.Now()
    		}(t)
    		start := time.Now()
    		cancel()
    		<-serverCanceled
    		t.Log("server cancel time:", time.Since(start))
    		clientEnd := <-clientCanceled
    		if !errors.Is(err, context.Canceled) {
    			t.Error("expected context.Canceled, got", err)
    		}
    		t.Log("client after", time.Since(clientEnd))
    	}
    	// local to remote, unbuffered
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. internal/grid/benchmark_test.go

    				defer timeout(60 * time.Second)()
    				ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
    				defer cancel()
    				b.ReportAllocs()
    				b.ResetTimer()
    				t := time.Now()
    				var ops int64
    				var lat int64
    				b.SetParallelism(par)
    				b.RunParallel(func(pb *testing.PB) {
    					rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    					n := 0
    					var latency int64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/Encdec.java

        private static final int TIME_1970_SEC_32BE = 1;
        private static final int TIME_1970_SEC_32LE = 2;
        private static final int TIME_1904_SEC_32BE = 3;
        private static final int TIME_1904_SEC_32LE = 4;
        private static final int TIME_1601_NANOS_64LE = 5;
        private static final int TIME_1601_NANOS_64BE = 6;
        private static final int TIME_1970_MILLIS_64BE = 7;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11K bytes
    - Viewed (0)
  9. internal/rest/client.go

    		newAuthToken:             newAuthToken,
    		connected:                connected,
    		lastConn:                 time.Now().UnixNano(),
    		MaxErrResponseSize:       4096,
    		HealthCheckReconnectUnit: 200 * time.Millisecond,
    		HealthCheckTimeout:       time.Second,
    	}
    	if err != nil {
    		clnt.lastErr = err
    		clnt.lastErrTime = time.Now()
    	}
    
    	if clnt.HealthCheckFn != nil {
    		// make connection pre-emptively.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    	if isGroup {
    		if store.getUsersSysType() == MinIOUsersSysType {
    			g, ok := c.iamGroupsMap[name]
    			if !ok {
    				if err := store.loadGroup(context.Background(), name, c.iamGroupsMap); err != nil {
    					return nil, time.Time{}, err
    				}
    				g, ok = c.iamGroupsMap[name]
    				if !ok {
    					return nil, time.Time{}, errNoSuchGroup
    				}
    			}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top