added datetime class. This class simplify unit testing