code: func IsTypeTemporal(tp byte) bool {
  	switch tp {
  	case mysql.TypeDuration, mysql.TypeDatetime, mysql.TypeTimestamp,
  		mysql.TypeDate, mysql.TypeNewDate:
  		return true
  	}
  	return false
  }
docs: // IsTypeTemporal checks if a type is a temporal type.