Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExactNanos (0.04 sec)

  1. src/archive/tar/strconv_test.go

    		name string
    		in   string
    		want time.Time
    		ok   bool
    	}{
    		{
    			name: "NoNanos",
    			in:   "123456",
    			want: time.Unix(123456, 0),
    			ok:   true,
    		},
    		{
    			name: "ExactNanos",
    			in:   "1.123456789",
    			want: time.Unix(1, 123456789),
    			ok:   true,
    		},
    		{
    			name: "WithNanoPadding",
    			in:   "1.123",
    			want: time.Unix(1, 123000000),
    			ok:   true,
    		},
    		{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top