Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 107 for etime (0.08 sec)

  1. cmd/object-api-options.go

    	var mtime time.Time
    	if mtimeStr != "" {
    		mtime, err = time.Parse(time.RFC3339Nano, mtimeStr)
    		if err != nil {
    			return opts, fmt.Errorf("Unable to parse %s, failed with %w", xhttp.MinIOSourceMTime, err)
    		}
    	}
    	retaintimeStr := strings.TrimSpace(hdr.Get(xhttp.MinIOSourceObjectRetentionTimestamp))
    	var retaintimestmp time.Time
    	if retaintimeStr != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. 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()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  3. 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)
  4. src/compress/gzip/issue14937_test.go

    package gzip
    
    import (
    	"internal/testenv"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    // TestGZIPFilesHaveZeroMTimes checks that every .gz file in the tree
    // has a zero MTIME. This is a requirement for the Debian maintainers
    // to be able to have deterministic packages.
    //
    // To patch a .gz file, use the following command:
    //
    //	$ dd if=/dev/zero bs=1 seek=4 count=4 conv=notrunc of=filename.gz
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/os/stat_freebsd.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atimespec.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/os/stat_linux.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/os/stat_netbsd.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atimespec.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/os/stat_openbsd.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/os/stat_darwin.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atimespec.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. src/os/stat_dragonfly.go

    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top