time.Time.Format (method)
55 uses
time (current package)
format.go#L451: s := t.Format("2006-01-02 15:04:05.999999999 -0700 MST")
format.go#L495: func (t Time) Format(layout string) string {
cloud.google.com/go/storage
bucket.go#L965: rr.Condition.CreatedBefore = r.Condition.CreatedBefore.Format(rfc3339Date)
post_policy_v4.go#L258: YYYYMMDD := now.Format(yearMonthDay)
post_policy_v4.go#L261: "x-goog-date": now.Format(iso8601),
post_policy_v4.go#L277: &singleValueCondition{"x-goog-date", now.Format(iso8601)},
post_policy_v4.go#L293: "expiration": opts.Expires.Format(time.RFC3339),
storage.go#L572: timestamp := now.Format(iso8601)
storage.go#L573: credentialScope := fmt.Sprintf("%s/auto/storage/goog4_request", now.Format(yearMonthDay))
storage.go#L1048: ret = o.RetentionExpirationTime.Format(time.RFC3339)
crypto/x509
verify.go#L599: Detail: fmt.Sprintf("current time %s is before %s", now.Format(time.RFC3339), c.NotBefore.Format(time.RFC3339)),
verify.go#L605: Detail: fmt.Sprintf("current time %s is after %s", now.Format(time.RFC3339), c.NotAfter.Format(time.RFC3339)),
database/sql
convert.go#L276: *d = s.Format(time.RFC3339Nano)
convert.go#L282: *d = []byte(s.Format(time.RFC3339Nano))
encoding/asn1
asn1.go#L352: if serialized := ret.Format(formatStr); serialized != s {
asn1.go#L375: if serialized := ret.Format(formatStr); serialized != s {
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#L55: return t.Format(RFC822OutputTimeFormat)
timestamp.go#L57: return t.Format(ISO8601OutputTimeFormat)
github.com/go-git/go-git/v5
blame.go#L278: return fmt.Sprintf("%s %s", c.Author.Name, c.Author.When.Format("2006-01-02"))
github.com/go-git/go-git/v5/plumbing/object
commit.go#L351: c.Author.When.Format(DateFormat), indent(c.Message),
object.go#L161: _, err := fmt.Fprintf(w, "%d %s", u, s.When.Format("-0700"))
tag.go#L280: plumbing.TagObject, t.Name, t.Tagger.String(), t.Tagger.When.Format(DateFormat),
github.com/golang/protobuf/ptypes
timestamp.go#L77: return t.Format(time.RFC3339Nano)
github.com/jackc/pgtype
date.go#L162: s = src.Time.Format("2006-01-02")
date.go#L250: s = src.Time.Format("2006-01-02")
timestamp.go#L169: s = src.Time.Truncate(time.Microsecond).Format(pgTimestampFormat)
timestamptz.go#L171: s = src.Time.UTC().Truncate(time.Microsecond).Format(pgTimestamptzSecondFormat)
timestamptz.go#L256: s = src.Time.Format(time.RFC3339Nano)
github.com/jackc/pgx/v4/internal/sanitize
sanitize.go#L50: str = arg.Truncate(time.Microsecond).Format("'2006-01-02 15:04:05.999999999Z07:00:00'")
github.com/lib/pq
encode.go#L487: b := []byte(t.Format("2006-01-02 15:04:05.999999999Z07:00"))
go.opencensus.io/zpages
tracez.go#L213: return t.Format("2006/01/02-15:04:05") + fmt.Sprintf(".%06d", t.Nanosecond()/1000)
tracez.go#L218: return t.Format(" 15:04:05") + fmt.Sprintf(".%06d", t.Nanosecond()/1000)
golang.org/x/net/http2
server.go#L2447: date = time.Now().UTC().Format(http.TimeFormat)
golang.org/x/net/trace
events.go#L241: return e.When.Format("2006/01/02 15:04:05.000000")
events.go#L243: return e.When.Format("15:04:05.000000")
events.go#L355: return el.Start.Format("2006/01/02 15:04:05.000000")
trace.go#L699: return e.When.Format("2006/01/02 15:04:05.000000")
trace.go#L701: return e.When.Format("15:04:05.000000")
trace.go#L888: return tr.Start.Format("2006/01/02 15:04:05.000000")
golang.org/x/pkgsite/internal/config
config.go#L362: FallbackVersionLabel: time.Now().Format(AppVersionFormat),
golang.org/x/pkgsite/internal/frontend
header.go#L106: return date.In(time.UTC).Format("Jan _2, 2006")
golang.org/x/pkgsite/internal/index
index.go#L50: values.Set("since", since.Format(time.RFC3339))
golang.org/x/pkgsite/internal/stdlib
stdlib.go#L365: return fmt.Sprintf("%s-%s-%s", version, commitTime.Format("20060102150405"), hash.String()[:12])
golang.org/x/pkgsite/internal/worker
server.go#L687: return t.In(locNewYork).Format("2006-01-02 15:04:05")
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L796: x := t.Format("2006-01-02T15:04:05.000000000")
gopkg.in/yaml.v2
encode.go#L359: s := t.Format(time.RFC3339Nano)
net/http
fs.go#L531: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
h2_bundle.go#L6002: date = time.Now().UTC().Format(TimeFormat)
transport.go#L2669: logf(time.Now().Format(time.RFC3339Nano)+": "+format, args...)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L116: c.AddBytes([]byte(t.Format(generalizedTimeFormatStr)))
asn1.go#L462: if serialized := res.Format(generalizedTimeFormatStr); serialized != t {
 |
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. |