Create console class

fix the problem related to unsuportede time