Use time(NULL) for current epoch time.