- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for truncateLike (0.32 sec)
-
src/cmd/go/testdata/script/build_issue6480.txt
fmt.Fprintln(os.Stderr, err) os.Exit(1) } } -- before/before.go -- package main import ( "encoding/json" "fmt" "os" "time" ) func truncateLike(t, p time.Time) time.Time { nano := p.UnixNano() d := 1 * time.Nanosecond for nano%int64(d) == 0 && d < 1*time.Second { d *= 10 } for nano%int64(d) == 0 && d < 2*time.Second { d *= 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.7K bytes - Viewed (0) -
cmd/admin-handlers-users.go
} if createReq.Expiration != nil && !createReq.Expiration.IsZero() { // truncate expiration at the second. truncateTime := createReq.Expiration.Truncate(time.Second) createReq.Expiration = &truncateTime } // service account access key cannot have space characters beginning and end of the string. if hasSpaceBE(createReq.AccessKey) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 28 17:19:04 UTC 2024 - 78.6K bytes - Viewed (0)