Extracted date-time calculations into a proto-module.
Moved datetime functionality to its own module.