I am using stat to get the last modified time of a file, but I would like to add a few seconds to the overall time.
if (stat(file_path, &st) == 0)
{
char estimate_time[50];
strftime(estimate_time, 50, "\'%F %T\'", localtime(&st.st_mtime)
}
So, this code works fine in getting the last modified time of the file, but I would just like to add a few seconds to the overall time. Is there a way to get "st_mtime" in seconds so I can simply add to that value and then use strftime to convert into a formatted output?
Thanks