Hi all..
i have a question.
i am trying to calculate the date and doing some addition of time to the objects by using CTimeSpan and CTime.
so my question is, are these classes machine specific?
herez what i am doing.
int ActualDayCount::nAddDays( Date& dtAddTo, int nDays )
{
CTimeSpan ctsSpan = CTimeSpan( nDays, 0, 0, 0 );
CTime ctAddTo = dtAddTo.GetCTime();
ctAddTo += ctsSpan;
dtAddTo = Date( ctAddTo );
}
but what i have seen is it gives me difference results when i am running the code on a Server as compared to when i run the code in development with same input date and the nDays.
any help will be highly appreciated.
Thanks,
In.