/* static */
inline wxDateTime wxDateTime::Today()
{
- struct tm *tm = GetTmNow();
- tm->tm_hour =
- tm->tm_min =
- tm->tm_sec = 0;
+ struct tm *time = GetTmNow();
+ time->tm_hour = 0;
+ time->tm_min = 0;
+ time->tm_sec = 0;
- return wxDateTime(*tm);
+ return wxDateTime(*time);
}
#if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))
return (time_t)((m_time / (long)TIME_T_FACTOR).GetLo())+WX_TIME_BASE_OFFSET ;
}
-bool wxDateTime::SetToLastWeekDay(WeekDay weekday,
+inline bool wxDateTime::SetToLastWeekDay(WeekDay weekday,
Month month,
int year)
{