ReadTimeUTC reads a time.Time object from the reader. The returned time's location will be set to UTC.
()
| 1396 | // ReadTimeUTC reads a time.Time object from the reader. |
| 1397 | // The returned time's location will be set to UTC. |
| 1398 | func (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. |