code: public TimeFormat getFormat(TimeUnit unit)
     {
        if (unit != null && units.get(unit) != null)
        {
           return units.get(unit);
        }
        return null;
     }
docs: Get the registered {@link TimeFormat} for the given {@link TimeUnit} or <code>null</code> if none exists.