cleanup datetime code

remove scories of round half up code and debug code.
2 files changed