Use difftime to do time_t math
This avoid any assumptions of what the underlying time_t type is.