Added conversion from char to time_t