The ctime function return value is not NULL after converting the time value to a date and time string.