code: public List<TimeUnit> clearUnits()
     {
        List<TimeUnit> result = getUnits();
        cachedUnits = null;
        units.clear();
        return result;
     }
docs: Remove all registered {@link TimeUnit} instances. Returns all {@link TimeUnit} instances that were removed.