- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 107 for etime (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/os/exec_unix.go
} // Use the handle. return newHandleProcess(pid, h), nil } func (p *ProcessState) userTime() time.Duration { return time.Duration(p.rusage.Utime.Nano()) * time.Nanosecond } func (p *ProcessState) systemTime() time.Duration { return time.Duration(p.rusage.Stime.Nano()) * time.Nanosecond
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
new Trans2SetFileInformationResponse(th.getConfig()), RequestParam.NO_RETRY); } } else { if ( ctime != 0 || atime != 0 ) { throw new SmbUnsupportedOperationException("Cannot set creation or access time without CAP_NT_SMBS"); }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu May 23 01:50:13 UTC 2024 - 82.3K bytes - Viewed (1)