Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,483 for time (0.09 sec)

  1. src/time/time.go

    // 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.
    //
    // The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.
    // As this time is unlikely to come up in practice, the [Time.IsZero] method gives
    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. 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)
  3. src/runtime/time.go

    // If now is not 0 it is the current time.
    // It returns the passed time or the current time if now was passed as 0.
    // and the time when the next timer should run or 0 if there is no next timer,
    // and reports whether it ran any timers.
    // If the time when the next timer should run is not 0,
    // it is always larger than the returned time.
    // We pass now in and out to avoid extra calls of nanotime.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. src/go/internal/gccgoimporter/testdata/time.gox

    >) <type 2 chan <- <type 3 "Time" <type 4 struct { .time.sec <type -4>; .time.nsec <type -3>; .time.loc <type 5 *<type 6 "Location" <type 7 struct { .time.name <type -16>; .time.zone <type 8 [] <type 9 ".time.zone" <type 10 struct { .time.name <type -16>; .time.offset <type -11>; .time.isDST <type -15>; }>>>; .time.tx <type 11 [] <type 12 ".time.zoneTrans" <type 13 struct { .time.when <type -4>; .time.index <type -5>; .time.isstd <type -15>; .time.isutc <type -15>; }>>>; .time.cacheStart...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

         * and are therefore not synchronized with {@link #clock()} or the system wall clock.
         *
         * System.nanoTime() does not consider time elapsed while the system is in hibernation.
         * Therefore, timers effectively measure the elapsed time, of which the system was awake.
         */
        public static Timer startTimer() {
            return new DefaultTimer(TimeSource.SYSTEM);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. src/archive/zip/testdata/time-go.zip

    Joe Tsai <******@****.***> 1503947278 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:50:28 UTC 2017
    - 148 bytes
    - Viewed (0)
  8. src/archive/zip/testdata/time-win7.zip

    Joe Tsai <******@****.***> 1503947278 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:50:28 UTC 2017
    - 114 bytes
    - Viewed (0)
  9. src/archive/zip/testdata/time-winzip.zip

    Joe Tsai <******@****.***> 1503947278 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:50:28 UTC 2017
    - 150 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go

    func (t noopTimer) C() <-chan time.Time {
    	return t.closedCh
    }
    func (noopTimer) Next() {}
    func (noopTimer) Stop() {}
    
    type variableTimer struct {
    	fn  DelayFunc
    	t   clock.Timer
    	new func(time.Duration) clock.Timer
    }
    
    func (t *variableTimer) C() <-chan time.Time {
    	if t.t == nil {
    		d := t.fn()
    		t.t = t.new(d)
    	}
    	return t.t.C()
    }
    func (t *variableTimer) Next() {
    	if t.t == nil {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top