code: func readTimestamp(ts *timestamp.Timestamp) time.Time {
  	t, err := ptypes.Timestamp(ts)
  	if err != nil {
  		return time.Time{}
  	}
  	return t
  }
docs: // readTimestamp converts ts to time.Time.
  // Returns zero if ts is invalid.