Cast localtime

Cast time to "time_t"