Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for mtime (0.16 sec)

  1. src/cmd/distpack/pack.go

    	tw := tar.NewWriter(zw)
    
    	// Find the mode and mtime to use for directory entries,
    	// based on the mode and mtime of the first file we see.
    	// We know that modes and mtimes are uniform across the archive.
    	var dirMode fs.FileMode
    	var mtime time.Time
    	for _, f := range a.Files {
    		dirMode = fs.ModeDir | f.Mode | (f.Mode&0444)>>2 // copy r bits down to x bits
    		mtime = f.Time
    		break
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cache/cache.go

    // within 5 days of the previous reuse. See golang.org/issue/22990.
    const (
    	mtimeInterval = 1 * time.Hour
    	trimInterval  = 24 * time.Hour
    	trimLimit     = 5 * 24 * time.Hour
    )
    
    // used makes a best-effort attempt to update mtime on file,
    // so that mtime reflects cache access time.
    //
    // Because the reflection only needs to be approximate,
    // and to reduce the amount of disk activity caused by using
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    				"mtime": "1350244992.023960108",
    				"atime": "1350244992.023960108",
    				"ctime": "1350244992.023960108",
    			},
    			Format: FormatPAX,
    		}, {
    			Name:       "a/b",
    			Mode:       0777,
    			Uid:        1000,
    			Gid:        1000,
    			Uname:      "shane",
    			Gname:      "shane",
    			Size:       0,
    			ModTime:    time.Unix(1350266320, 910238425),
    			ChangeTime: time.Unix(1350266320, 910238425),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  4. 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},
    		},
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  5. src/cmd/dist/util.go

    func isfile(p string) bool {
    	fi, err := os.Stat(p)
    	return err == nil && fi.Mode().IsRegular()
    }
    
    // mtime returns the modification time of the file p.
    func mtime(p string) time.Time {
    	fi, err := os.Stat(p)
    	if err != nil {
    		return time.Time{}
    	}
    	return fi.ModTime()
    }
    
    // readfile returns the content of the named file.
    func readfile(file string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/read.go

    		return cache.ActionID{}, ErrNotIndexed
    	}
    	cutoff := time.Now().Add(-modTimeCutoff)
    	for _, info := range entries {
    		if info.IsDir() {
    			continue
    		}
    
    		if !info.Mode().IsRegular() {
    			return cache.ActionID{}, ErrNotIndexed
    		}
    		// To avoid problems for very recent files where a new
    		// write might not change the mtime due to file system
    		// mtime precision, reject caching if a file was read that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. misc/wasm/wasm_exec.js

    			symlink(path, link, callback) { callback(enosys()); },
    			truncate(path, length, callback) { callback(enosys()); },
    			unlink(path, callback) { callback(enosys()); },
    			utimes(path, atime, mtime, callback) { callback(enosys()); },
    		};
    	}
    
    	if (!globalThis.process) {
    		globalThis.process = {
    			getuid() { return -1; },
    			getgid() { return -1; },
    			geteuid() { return -1; },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    	//
    	// 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)
    
    	Devmajor int64 // Major device number (valid for TypeChar or TypeBlock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    	{"X1", "X1"},
    	{"X2", "X2"},
    	{"X3", "X3"},
    	{"X4", "X4"},
    	{"X5", "X5"},
    	{"X6", "X6"},
    	{"X7", "X7"},
    	{"asmcgocall<>(SB)", "asmcgocall<>(SB)"},
    	{"ax+4(FP)", "ax+4(FP)"},
    	{"ptime-12(SP)", "ptime-12(SP)"},
    	{"runtimeĀ·_NtWaitForSingleObject(SB)", "runtime._NtWaitForSingleObject(SB)"},
    	{"s(FP)", "s(FP)"},
    	{"sec+4(FP)", "sec+4(FP)"},
    	{"shifts<>(SB)(CX*8)", "shifts<>(SB)(CX*8)"},
    	{"x+4(FP)", "x+4(FP)"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  10. api/go1.17.txt

    pkg text/template/parse, const SkipFuncCheck Mode
    pkg time, const Layout = "01/02 03:04:05PM '06 -0700"
    pkg time, const Layout ideal-string
    pkg time, func UnixMicro(int64) Time
    pkg time, func UnixMilli(int64) Time
    pkg time, method (Time) GoString() string
    pkg time, method (Time) IsDST() bool
    pkg time, method (Time) UnixMicro() int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
Back to top