better handling for time_t .. use typedef