Item13097: remove dependency on CPAN modules

This fixes duration maths and removes some of DateTime's limitations.