Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 119 for etime (0.05 sec)

  1. src/syscall/dir_plan9.go

    	// system-modified data
    	Type uint16 // server type
    	Dev  uint32 // server subtype
    
    	// file data
    	Qid    Qid    // unique id from server
    	Mode   uint32 // permissions
    	Atime  uint32 // last read time
    	Mtime  uint32 // last write time
    	Length int64  // file length
    	Name   string // last element of path
    	Uid    string // owner name
    	Gid    string // group name
    	Muid   string // last modifier name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/os/stat_js.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 {
    	st := fi.Sys().(*syscall.Stat_t)
    	return time.Unix(st.Atime, st.AtimeNsec)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/syscall/fs_wasip1.go

    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	atime := TimespecToNsec(ts[0])
    	mtime := TimespecToNsec(ts[1])
    	if ts[0].Nsec == UTIME_OMIT || ts[1].Nsec == UTIME_OMIT {
    		var st Stat_t
    		if err := Stat(path, &st); err != nil {
    			return err
    		}
    		if ts[0].Nsec == UTIME_OMIT {
    			atime = int64(st.Atime)
    		}
    		if ts[1].Nsec == UTIME_OMIT {
    			mtime = int64(st.Mtime)
    		}
    	}
    	errno := path_filestat_set_times(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/os/file_posix.go

    // file, similar to the Unix utime() or utimes() functions.
    // A zero [time.Time] value will leave the corresponding file time unchanged.
    //
    // The underlying filesystem may truncate or round the values to a
    // less precise time unit.
    // If there is an error, it will be of type [*PathError].
    func Chtimes(name string, atime time.Time, mtime time.Time) error {
    	var utimes [2]syscall.Timespec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.time;
    
    import java.util.concurrent.TimeUnit;
    
    /**
     * Instruments for observing time.
     */
    public abstract class Time {
    
        private static final Clock CLOCK = new MonotonicClock();
    
        /**
         * A clock that is guaranteed not to go backwards.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. 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].
    
    <!-- go.dev/issue/61542 -->
    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.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 20:49:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top