time.Time.Nanosecond (method)
22 uses
time (current package)
format.go#L672: b = formatNano(b, uint(t.Nanosecond()), std>>stdArgShift, std&stdMask == stdFracSecond9)
time.go#L569: func (t Time) Nanosecond() int {
contrib.go.opencensus.io/exporter/stackdriver
stats.go#L461: Nanos: int32(start.Nanosecond()),
stats.go#L465: Nanos: int32(end.Nanosecond()),
stats.go#L475: Nanos: int32(end.Nanosecond()),
trace_proto.go#L175: Nanos: int32(t.Nanosecond()),
github.com/go-git/go-git/v5/plumbing/format/index
encoder.go#L132: return uint32(t.Unix()), uint32(t.Nanosecond()), nil
index.go#L157: fmt.Fprintf(buf, " ctime: %d:%d\n", e.CreatedAt.Unix(), e.CreatedAt.Nanosecond())
index.go#L158: fmt.Fprintf(buf, " mtime: %d:%d\n", e.ModifiedAt.Unix(), e.ModifiedAt.Nanosecond())
github.com/golang/protobuf/ptypes
timestamp.go#L62: Nanos: int32(t.Nanosecond()),
github.com/jackc/pgtype
time.go#L42: int64(value.Nanosecond())/1000
timestamp.go#L42: *dst = Timestamp{Time: time.Date(value.Year(), value.Month(), value.Day(), value.Hour(), value.Minute(), value.Second(), value.Nanosecond(), time.UTC), Status: Present}
timestamp.go#L195: microsecSinceUnixEpoch := src.Time.Unix()*1000000 + int64(src.Time.Nanosecond())/1000
timestamptz.go#L192: microsecSinceUnixEpoch := src.Time.Unix()*1000000 + int64(src.Time.Nanosecond())/1000
github.com/prometheus/client_golang/prometheus
metric.go#L156: pb.TimestampMs = proto.Int64(m.t.Unix()*1000 + int64(m.t.Nanosecond()/1000000))
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/sys/unix
timestruct.go#L33: nsec := int64(t.Nanosecond())
google.golang.org/grpc/balancer/grpclb
grpclb_remote_balancer.go#L309: Nanos: int32(t.Nanosecond()),
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L829: m.Set(fdNanos, pref.ValueOfInt32(int32(t.Nanosecond())))
google.golang.org/protobuf/types/known/timestamppb
timestamp.pb.go#L193: return &Timestamp{Seconds: int64(t.Unix()), Nanos: int32(t.Nanosecond())}
log
log.go#L129: itoa(buf, t.Nanosecond()/1e3, 6)
 |
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. |