Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 298 for etime (0.05 sec)

  1. src/time/time.go

    // that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and
    // [Time.UnmarshalText] are not concurrency-safe.
    //
    // Time instants can be compared using the [Time.Before], [Time.After], and [Time.Equal] methods.
    // The [Time.Sub] method subtracts two instants, producing a [Duration].
    // The [Time.Add] method adds a Time and a Duration, producing a Time.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. pkg/util/filesystem/defaultfs.go

    	if err := os.MkdirAll(path, perm); err != nil {
    		return err
    	}
    	return nil
    }
    
    // Chtimes via os.Chtimes
    func (fs *DefaultFs) Chtimes(name string, atime time.Time, mtime time.Time) error {
    	return os.Chtimes(fs.prefix(name), atime, mtime)
    }
    
    // RemoveAll via os.RemoveAll
    func (fs *DefaultFs) RemoveAll(path string) error {
    	return os.RemoveAll(fs.prefix(path))
    }
    
    // Remove via os.Remove
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go

    	// fields...
    	stat.Size = int64(r.Size)
    	stat.Blksize = int32(r.Blksize)
    	stat.Blocks = int64(r.Blocks)
    	stat.Atim = timespecFromStatxTimestamp(r.Atime)
    	stat.Mtim = timespecFromStatxTimestamp(r.Mtime)
    	stat.Ctim = timespecFromStatxTimestamp(r.Ctime)
    
    	return nil
    }
    
    func Fstat(fd int, stat *Stat_t) (err error) {
    	return Fstatat(fd, "", stat, AT_EMPTY_PATH)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/runtime/time.go

    	return true
    }
    
    // A timeTimer is a runtime-allocated time.Timer or time.Ticker
    // with the additional runtime state following it.
    // The runtime state is inaccessible to package time.
    type timeTimer struct {
    	c    unsafe.Pointer // <-chan time.Time
    	init bool
    	timer
    }
    
    // newTimer allocates and returns a new time.Timer or time.Ticker (same layout)
    // with the given parameters.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	}
    	return false
    }
    
    // Unix returns the local time corresponding to the given Unix time
    // by wrapping time.Unix.
    func Unix(sec int64, nsec int64) Time {
    	return Time{time.Unix(sec, nsec)}
    }
    
    // Rfc3339Copy returns a copy of the Time at second-level precision.
    func (t Time) Rfc3339Copy() Time {
    	copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339))
    	return Time{copied}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. pkg/util/filesystem/filesystem.go

    import (
    	"os"
    	"path/filepath"
    	"time"
    )
    
    // Filesystem is an interface that we can use to mock various filesystem operations
    type Filesystem interface {
    	// from "os"
    	Stat(name string) (os.FileInfo, error)
    	Create(name string) (File, error)
    	Rename(oldpath, newpath string) error
    	MkdirAll(path string, perm os.FileMode) error
    	Chtimes(name string, atime time.Time, mtime time.Time) error
    	RemoveAll(path string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 01:02:46 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/syscall/syscall_linux_loong64.go

    	// fields...
    	stat.Size = int64(r.Size)
    	stat.Blksize = int32(r.Blksize)
    	stat.Blocks = int64(r.Blocks)
    	stat.Atim = timespecFromStatxTimestamp(r.Atime)
    	stat.Mtim = timespecFromStatxTimestamp(r.Mtime)
    	stat.Ctim = timespecFromStatxTimestamp(r.Ctime)
    
    	return nil
    }
    
    func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
    	return fstatat(fd, path, stat, flags)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. src/os/example_test.go

    func ExampleChmod() {
    	if err := os.Chmod("some-filename", 0644); err != nil {
    		log.Fatal(err)
    	}
    }
    
    func ExampleChtimes() {
    	mtime := time.Date(2006, time.February, 1, 3, 4, 5, 0, time.UTC)
    	atime := time.Date(2007, time.March, 2, 4, 5, 6, 0, time.UTC)
    	if err := os.Chtimes("some-filename", atime, mtime); err != nil {
    		log.Fatal(err)
    	}
    }
    
    func ExampleFileMode() {
    	fi, err := os.Lstat("some-filename")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/os/os_test.go

    	}{
    		{
    			aTime:     time.Time{},
    			mTime:     time.Time{},
    			wantATime: startAtime,
    			wantMTime: startMtime,
    		},
    		{
    			aTime:     t0.Add(200 * time.Second),
    			mTime:     time.Time{},
    			wantATime: t0.Add(200 * time.Second),
    			wantMTime: startMtime,
    		},
    		{
    			aTime:     time.Time{},
    			mTime:     t0.Add(100 * time.Second),
    			wantATime: t0.Add(200 * time.Second),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    	Sec  int64
    	Usec int64
    }
    
    type Timeval32 struct {
    	Sec  int32
    	Usec int32
    }
    
    type Tms struct {
    	Utime  int64
    	Stime  int64
    	Cutime int64
    	Cstime int64
    }
    
    type Utimbuf struct {
    	Actime  int64
    	Modtime int64
    }
    
    type Rusage struct {
    	Utime    Timeval
    	Stime    Timeval
    	Maxrss   int64
    	Ixrss    int64
    	Idrss    int64
    	Isrss    int64
    	Minflt   int64
    	Majflt   int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top