a wrapper of dateTime in C++