Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 1us (0.02 sec)

  1. src/time/example_test.go

    	hours, _ := time.ParseDuration("10h")
    	complex, _ := time.ParseDuration("1h10m10s")
    	micro, _ := time.ParseDuration("1µs")
    	// The package also accepts the incorrect but common prefix u for micro.
    	micro2, _ := time.ParseDuration("1us")
    
    	fmt.Println(hours)
    	fmt.Println(complex)
    	fmt.Printf("There are %.0f seconds in %v.\n", complex.Seconds(), complex)
    	fmt.Printf("There are %d nanoseconds in %v.\n", micro.Nanoseconds(), micro)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"duration('1d')":                     "compilation failed: ERROR: <input>:1:10: invalid duration argument",
    				"duration('1us') < duration('1nns')": "compilation failed: ERROR: <input>:1:28: invalid duration argument",
    			},
    		},
    		{name: "date format",
    			obj:    objs("1997-07-16", "1997-07-16"),
    			schema: schemas(dateFormat, dateFormat),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top