MCPcopy
hub / github.com/tinylib/msgp / ReadTimeUTC

Method ReadTimeUTC

msgp/read.go:1398–1401  ·  view source on GitHub ↗

ReadTimeUTC reads a time.Time object from the reader. The returned time's location will be set to UTC.

()

Source from the content-addressed store, hash-verified

1396// ReadTimeUTC reads a time.Time object from the reader.
1397// The returned time's location will be set to UTC.
1398func (m *Reader) ReadTimeUTC() (t time.Time, err error) {
1399 t, err = m.ReadTime()
1400 return t.UTC(), err
1401}
1402
1403// ReadTime reads a time.Time object from the reader.
1404// The returned time's location will be set to time.Local.

Callers 1

FuzzReaderFunction · 0.95

Calls 1

ReadTimeMethod · 0.95

Tested by 1

FuzzReaderFunction · 0.76