Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for setModTime (0.68 seconds)

  1. src/archive/zip/struct.go

    func (h *FileHeader) ModTime() time.Time {
    	return msDosTimeToTime(h.ModifiedDate, h.ModifiedTime)
    }
    
    // SetModTime sets the [Modified], [ModifiedTime], and [ModifiedDate] fields
    // to the given time in UTC.
    //
    // Deprecated: Use [Modified] instead.
    func (h *FileHeader) SetModTime(t time.Time) {
    	t = t.UTC() // Convert to UTC for compatibility
    	h.Modified = t
    	h.ModifiedDate, h.ModifiedTime = timeToMsDosTime(t)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue May 28 21:41:09 GMT 2024
    - 12.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTar.java

                    visitedSymbolicLinks.add(details.getFile());
                    final TarArchiveEntry entry = new TarArchiveEntry(details.getRelativePath().getPathString(), TarConstants.LF_SYMLINK);
                    entry.setModTime(getModTime(details));
                    entry.setMode(UnixStat.LINK_FLAG | details.getMode());
                    try {
                        entry.setLinkName(Files.readSymbolicLink(details.getFile().toPath()).toString());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 8.7K bytes
    - Click Count (0)
  3. src/archive/zip/zip_test.go

    			t.Fatalf("File(%d) = %q, want %q", i, zr.File[i].Name, want)
    		}
    	}
    }
    
    func TestModTime(t *testing.T) {
    	var testTime = time.Date(2009, time.November, 10, 23, 45, 58, 0, time.UTC)
    	fh := new(FileHeader)
    	fh.SetModTime(testTime)
    	outTime := fh.ModTime()
    	if !outTime.Equal(testTime) {
    		t.Errorf("times don't match: got %s, want %s", outTime, testTime)
    	}
    }
    
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu May 23 01:00:11 GMT 2024
    - 19.6K bytes
    - Click Count (0)
  4. src/archive/zip/writer.go

    	fh.ReaderVersion = zipVersion20
    
    	// If Modified is set, this takes precedence over MS-DOS timestamp fields.
    	if !fh.Modified.IsZero() {
    		// Contrary to the FileHeader.SetModTime method, we intentionally
    		// do not convert to UTC, because we assume the user intends to encode
    		// the date using the specified timezone. A user may want this control
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jan 28 04:20:09 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. api/go1.16.txt

    pkg archive/tar, type Header struct, Xattrs //deprecated
    pkg archive/zip, method (*File) ModTime //deprecated
    pkg archive/zip, method (*File) SetModTime //deprecated
    pkg archive/zip, method (*FileHeader) ModTime //deprecated
    pkg archive/zip, method (*FileHeader) SetModTime //deprecated
    pkg archive/zip, type FileHeader struct, CompressedSize //deprecated
    pkg archive/zip, type FileHeader struct, ModifiedDate //deprecated
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Click Count (0)
  6. api/go1.txt

    pkg archive/zip, method (*File) SetModTime(time.Time)
    pkg archive/zip, method (*File) SetMode(os.FileMode)
    pkg archive/zip, method (*FileHeader) FileInfo() os.FileInfo
    pkg archive/zip, method (*FileHeader) ModTime() time.Time
    pkg archive/zip, method (*FileHeader) Mode() os.FileMode
    pkg archive/zip, method (*FileHeader) SetModTime(time.Time)
    pkg archive/zip, method (*FileHeader) SetMode(os.FileMode)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
Back to Top