time.Time.UTC (method)
33 uses
time (current package)
time.go#L1081: func (t Time) UTC() Time {
archive/zip
reader.go#L406: f.Modified = modified.UTC()
struct.go#L162: return fi.fh.Modified.UTC()
struct.go#L261: t = t.UTC() // Convert to UTC for compatibility
cloud.google.com/go/storage
storage.go#L521: return time.Now().UTC()
crypto/x509
x509.go#L2200: Validity: validity{template.NotBefore.UTC(), template.NotAfter.UTC()},
x509.go#L2306: rc.RevocationTime = rc.RevocationTime.UTC()
x509.go#L2314: ThisUpdate: now.UTC(),
x509.go#L2315: NextUpdate: expiry.UTC(),
x509.go#L2798: rc.RevocationTime = rc.RevocationTime.UTC()
x509.go#L2815: ThisUpdate: template.ThisUpdate.UTC(),
x509.go#L2816: NextUpdate: template.NextUpdate.UTC(),
github.com/aws/aws-sdk-go/aws/credentials/stscreds
assume_role_provider.go#L304: p.RoleSessionName = fmt.Sprintf("%d", time.Now().UTC().UnixNano())
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L841: return dt.UTC().Format(shortTimeFormat)
v4.go#L845: return dt.UTC().Format(timeFormat)
github.com/aws/aws-sdk-go/private/protocol
timestamp.go#L51: t = t.UTC().Truncate(time.Millisecond)
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
unmarshal.go#L288: t := time.Unix(0, ms*1e6).UTC()
github.com/go-git/go-git/v5/plumbing/protocol/packp
ulreq_decode.go#L233: t := time.Unix(secs, 0).UTC()
ulreq_encode.go#L119: when := time.Time(depth).UTC()
github.com/golang/protobuf/ptypes
timestamp.go#L41: t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp
timestamp.go#L43: t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC()
github.com/jackc/pgtype
timestamp.go#L145: tim := time.Unix(microsecSinceUnixEpoch/1000000, (microsecSinceUnixEpoch%1000000)*1000).UTC()
timestamptz.go#L171: s = src.Time.UTC().Truncate(time.Microsecond).Format(pgTimestamptzSecondFormat)
golang.org/x/net/http2
server.go#L2447: date = time.Now().UTC().Format(http.TimeFormat)
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L795: t := time.Unix(secs, nanos).UTC()
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L198: return time.Unix(int64(x.GetSeconds()), int64(x.GetNanos())).UTC()
log
log.go#L109: t = t.UTC()
net/http
cookie.go#L145: c.Expires = exptime.UTC()
cookie.go#L207: b.Write(c.Expires.UTC().AppendFormat(buf[:0], TimeFormat))
fs.go#L531: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
h2_bundle.go#L6002: date = time.Now().UTC().Format(TimeFormat)
server.go#L937: t = t.UTC()
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |