code: func (t Time) CompareString(str string) (int, error) {
  	// use MaxFsp to parse the string
  	o, err := ParseTime(str, t.Type, MaxFsp)
  	if err != nil {
  		return 0, errors.Trace(err)
  	}
  
  	return t.Compare(o), nil
  }
docs: // CompareString is like Compare,
  // but parses string to Time then compares.