code: func toTime(ts *timestamp.Timestamp) (result time.Time) {
  	// We want a zero-ed out time.Time, not one set to the epoch.
  	if t, err := ptypes.Timestamp(ts); err == nil {
  		result = t
  	}
  	return
  }
docs: // toTime returns the time.Time format for the proto timestamp.
  // If the proto timestamp is invalid, we return a zero-ed out time.Time.