MCPcopy
hub / github.com/segmentio/kafka-go / makeTime

Function makeTime

time.go:14–19  ·  view source on GitHub ↗
(t int64)

Source from the content-addressed store, hash-verified

12)
13
14func makeTime(t int64) time.Time {
15 if t <= 0 {
16 return time.Time{}
17 }
18 return time.Unix(t/1000, (t%1000)*int64(time.Millisecond)).UTC()
19}
20
21func timestamp(t time.Time) int64 {
22 if t.IsZero() {

Callers 4

RawProduceMethod · 0.70
ListOffsetsMethod · 0.70
ReadMessageMethod · 0.70
ProduceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected