Add datetimediff and update HDS, HQMF2JS, and SimpleXML