Date/time (+math, +intervals) implementation for Haxe