How to configure in HTM.java to identify weekly and daily patterns

Hi
Pls let me know how to configure in HTM.java to identify weekly and daily patterns .

Moved from #htm-hackers to #htm-java.

Make sure that you are encoding date information that captures the semantics of of weeks and days, as described here.

Thanks Matt ,
Here the settings

fieldEncodings.get("timestamp").put(KEY.DATEFIELD_DOFW.getFieldName(), new Tuple(1, 1.0)); // Day of week
fieldEncodings.get("timestamp").put(KEY.DATEFIELD_TOFD.getFieldName(), new Tuple(24, 1.0)); // Time of day

Try these values:

fieldEncodings.get("timestamp").put(KEY.DATEFIELD_DOFW.getFieldName(), new Tuple(21, 5.01)); // Day of week
fieldEncodings.get("timestamp").put(KEY.DATEFIELD_TOFD.getFieldName(), new Tuple(21, 11.55)); // Time of day

Thanks Matt.