code: func isTimeUnit(unit string) bool {
  	unit = strings.ToLower(unit)
  	if len(unit) > 2 {
  		unit = strings.TrimSuffix(unit, "s")
  	}
  
  	switch unit {
  	case "nanosecond", "ns", "microsecond", "millisecond", "ms", "s", "second", "sec", "hr", "day", "week", "year":
  		return true
  	}
  	return false
  }
docs: // isTimeUnit returns whether a name is recognized as a time unit.