Ok this looks like what am looking for.
time_t now(); // return the current time as seconds since Jan 1 1970
void setTime(time_t t);
void setTime(int hr,int min,int sec,int day, int month, int yr);
void adjustTime(long adjustment);
So the format is (hr,min,sec,day,month,yr).
/* Useful Macros for converting elapsed time to a time_t */
#define minutesToTime_t ((M)) ( (M) * SECS_PER_MIN)
#define hoursToTime_t ((H)) ( (H) * SECS_PER_HOUR)
#define daysToTime_t ((D)) ( (D) * SECS_PER_DAY) // fixed on Jul 22 2011
#define weeksToTime_t ((W)) ( (W) * SECS_PER_WEEK)
Now the macros that I think I should use are the daysToTime_t, hoursToTime_t and minutesToTime_t. But I am still a little confused as to what this macro is doing and how. Objects are the hardest thing to learn in C++.
The first D in daysToTime_t would be now() and the second retiremenDate() this doesn't look right the second D looks like it's asking for the number of days * sec per day but that is not what I want. I want to give it the date and it return the days left. What am I missing here.