Documented and moved getTimeSegments into libcomcat for re-use