private static TimePart valueOf(int id) {
            for (TimePart part : values()) {
                if (id == part.id) {
                    return part;
                }
            }
            return null;
        }
<p>This function assign a fixed width bucket to each input value.</p>

@author <a href="mailto:havardpe@yahoo-inc.com">Haavard Pettersen</a>
@author Simon Thoresen Hult
searchlib/src/main/java/com/yahoo/searchlib/expression/TimeStampFunctionNode.java