implement DateTime.__cmp