Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for mktime (0.15 sec)

  1. src/archive/zip/reader_test.go

    	}
    	if !ft.Modified.IsZero() && !equalTimeAndZone(f.Modified, ft.Modified) {
    		t.Errorf("%s: Modified=%s, want %s", f.Name, f.Modified, ft.Modified)
    	}
    	if !ft.ModTime.IsZero() && !equalTimeAndZone(f.ModTime(), ft.ModTime) {
    		t.Errorf("%s: ModTime=%s, want %s", f.Name, f.ModTime(), ft.ModTime)
    	}
    
    	testFileMode(t, f, ft.Mode)
    
    	size := uint64(f.UncompressedSize)
    	if size == uint32max {
    		size = f.UncompressedSize64
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    	// to the nearest second and ignores the AccessTime and ChangeTime fields.
    	//
    	// To use AccessTime or ChangeTime, specify the Format as PAX or GNU.
    	// To use sub-second resolution, specify the Format as PAX.
    	ModTime    time.Time // Modification time
    	AccessTime time.Time // Access time (requires either PAX or GNU support)
    	ChangeTime time.Time // Change time (requires either PAX or GNU support)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  3. api/next/50102.txt

    pkg archive/tar, type FileInfoNames interface { Gname, IsDir, ModTime, Mode, Name, Size, Sys, Uname } #50102
    pkg archive/tar, type FileInfoNames interface, Gname() (string, error) #50102
    pkg archive/tar, type FileInfoNames interface, IsDir() bool #50102
    pkg archive/tar, type FileInfoNames interface, ModTime() time.Time #50102
    pkg archive/tar, type FileInfoNames interface, Mode() fs.FileMode #50102
    pkg archive/tar, type FileInfoNames interface, Name() string #50102
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 686 bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    		ModifiedDate:     5678,
    	}
    	fi := fh.FileInfo()
    	fh2, err := FileInfoHeader(fi)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got, want := fh2.ModTime(), fh.ModTime(); got != want {
    		t.Errorf("Modified: got %s, want %s\n", got, want)
    	}
    	if got, want := fi.ModTime(), fh.ModTime(); got != want {
    		t.Errorf("Modified: got %s, want %s\n", got, want)
    	}
    }
    
    type repeatedByte struct {
    	off int64
    	b   byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. doc/next/6-stdlib/1-time.md

    ### Timer changes
    
    Go 1.23 makes two significant changes to the implementation of
    [time.Timer] and [time.Ticker].
    
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    			// atime and ctime fields (e.g., when they are valid octal strings),
    			// then it is impossible to distinguish between a valid GNU file
    			// and an invalid pre-Go1.8 file.
    			//
    			// See https://golang.org/issues/12594
    			// See https://golang.org/issues/21005
    			if p2.err != nil {
    				hdr.AccessTime, hdr.ChangeTime = time.Time{}, time.Time{}
    				ustar := tr.blk.toUSTAR()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    				PAXRecords: map[string]string{"path": ""}, // Should delete "path", but keep "mtime"
    			}, nil},
    			testHeader{Header{
    				Typeflag: TypeReg, Name: "file3",
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeReg,
    				Name:       "file4",
    				ModTime:    time.Unix(1400000000, 0),
    				PAXRecords: map[string]string{"mtime": "1400000000"},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    	}, {
    		header:  &Header{ModTime: time.Unix(1, 500)},
    		paxHdrs: map[string]string{paxMtime: "1.0000005"},
    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{ModTime: time.Unix(1, 0)},
    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{ModTime: time.Unix(1, 0), Format: FormatPAX},
    		formats: FormatUSTAR | FormatPAX,
    	}, {
    		header:  &Header{ModTime: time.Unix(1, 500), Format: FormatUSTAR},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  9. src/archive/zip/writer.go

    		// if modification time is the only timestamp being encoded.
    		var mbuf [9]byte // 2*SizeOf(uint16) + SizeOf(uint8) + SizeOf(uint32)
    		mt := uint32(fh.Modified.Unix())
    		eb := writeBuf(mbuf[:])
    		eb.uint16(extTimeExtraID)
    		eb.uint16(5)  // Size: SizeOf(uint8) + SizeOf(uint32)
    		eb.uint8(1)   // Flags: ModTime
    		eb.uint32(mt) // ModTime
    		fh.Extra = append(fh.Extra, mbuf[:]...)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top