Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFormatPAXTime (0.08 sec)

  1. src/archive/tar/strconv_test.go

    			}
    		}
    		if ok && !ts.Equal(v.want) {
    			t.Errorf("parsePAXTime(%q): got (%ds %dns), want (%ds %dns)",
    				v.in, ts.Unix(), ts.Nanosecond(), v.want.Unix(), v.want.Nanosecond())
    		}
    	}
    }
    
    func TestFormatPAXTime(t *testing.T) {
    	vectors := []struct {
    		sec, nsec int64
    		want      string
    	}{
    		{1350244992, 0, "1350244992"},
    		{1350244992, 300000000, "1350244992.3"},
    		{1350244992, 23960100, "1350244992.0239601"},
    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