Custom date-time (+math) implementation for Haxe