Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 1us (0.01 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)
Back to top