- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,193 for Time (0.05 sec)
-
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: 2024-06-15 01:39 - Last Modified: 2024-05-29 21:48 - 5.2K bytes - Viewed (0) -
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: 2024-06-12 16:32 - Last Modified: 2021-09-30 21:33 - 7.3K 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: 2024-06-12 18:38 - Last Modified: 2024-04-11 20:20 - 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: 2024-06-12 16:32 - Last Modified: 2024-05-23 20:49 - 1.5K bytes - Viewed (0) -
src/archive/zip/testdata/time-go.zip
Joe Tsai <******@****.***> 1503947278 -0700
Registered: 2024-06-12 16:32 - Last Modified: 2017-11-06 19:50 - 148 bytes - Viewed (0) -
src/archive/zip/testdata/time-win7.zip
Joe Tsai <******@****.***> 1503947278 -0700
Registered: 2024-06-12 16:32 - Last Modified: 2017-11-06 19:50 - 114 bytes - Viewed (0) -
src/archive/zip/testdata/time-winzip.zip
Joe Tsai <******@****.***> 1503947278 -0700
Registered: 2024-06-12 16:32 - Last Modified: 2017-11-06 19:50 - 150 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/duration/duration_test.go
{d: 3 * time.Hour, want: "3h"}, {d: 3*time.Hour + time.Minute, want: "3h1m"}, {d: 8*time.Hour - time.Millisecond, want: "7h59m"}, {d: 8 * time.Hour, want: "8h"}, {d: 8*time.Hour + 59*time.Minute, want: "8h"}, {d: 2*24*time.Hour - time.Millisecond, want: "47h"}, {d: 2 * 24 * time.Hour, want: "2d"}, {d: 2*24*time.Hour + time.Hour, want: "2d1h"},
Registered: 2024-06-15 01:39 - Last Modified: 2020-04-17 18:04 - 4.5K bytes - Viewed (0) -
plugin/pkg/admission/imagepolicy/config.go
package imagepolicy import ( "fmt" "time" "k8s.io/klog/v2" ) const ( defaultRetryBackoff = time.Duration(500) * time.Millisecond minRetryBackoff = time.Duration(1) maxRetryBackoff = time.Duration(5) * time.Minute defaultAllowTTL = time.Duration(5) * time.Minute defaultDenyTTL = time.Duration(30) * time.Second minAllowTTL = time.Duration(1) * time.Second
Registered: 2024-06-15 01:39 - Last Modified: 2022-08-25 04:07 - 3.1K bytes - Viewed (0) -
internal/cachevalue/cache_test.go
func(ctx context.Context) (time.Time, error) { return time.Now(), nil }, ) t1, _ := cache.Get() t2, _ := cache.Get() if !t1.Equal(t2) { t.Fatalf("expected time to be equal: %s != %s", t1, t2) } time.Sleep(3 * time.Second) t3, _ := cache.Get() if t1.Equal(t3) { t.Fatalf("expected time to be un-equal: %s == %s", t1, t3) } } func BenchmarkCache(b *testing.B) {
Registered: 2024-06-16 00:44 - Last Modified: 2024-05-09 00:51 - 2.7K bytes - Viewed (0)