Extracting the Segment "children" related methods

Created a new module with those methods and minor
refactoring in date_time.