enhanced the time_t example