Thread: ctime
View Single Post
Old 01-28-2008, 05:03 PM   #2 (permalink)
void
void's Avatar
 
True Techie

Join Date: Oct 2005

Posts: 198

void

Default Re: ctime

Look at some of the functions in <ctime>. Because "time /t" returns a string you'll have to parse it and generate a struct tm and use mktime() to convert it to time_t. If your using "time /t" to get the current time, don't because time() will give you the current time as time_t. difftime() will allow you to compare two times and return the difference in seconds.
void is offline