-// EXPERIMENTAL: comment this out if it doesn't compile.
-#ifndef __VMS__
-bool wxGetLocalTime(long *timeZone, int *dstObserved)
-{
-#if defined(__MINGW32__) && defined(__EGCS__)
- time_t t0;
- struct tm *tp;
- time(&t0);
- tp = localtime(&t0);
- *timeZone = timezone; // tp->tm_gmtoff; // ???
- *dstObserved = tp->tm_isdst;
-#elif defined(__MINGW32__)
- time_t t0;
- struct tm *tp;
- time(&t0);
- tp = localtime(&t0);
- timeb tz;
- ftime(& tz);
- *timeZone = tz._timezone;
- *dstObserved = tp->tm_isdst;
-#else
-
-#if (((defined(__SYSV__) && !defined(__HPUX__)) || defined(__MSDOS__) || defined(__WINDOWS__)) && !defined(__GNUWIN32__))
-#ifdef __BORLANDC__
- /* Borland uses underscores */
- *timeZone = _timezone;
- *dstObserved = _daylight;
-#else
- *timeZone = timezone;
- *dstObserved = daylight;
-#endif
-#elif defined(__xlC__) || defined(__AIX__) || defined(__SVR4__) || defined(__SYSV__) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) // || defined(__AIXV3__)
- struct timeval tp;
-#if defined(__SYSV__) || (defined(__GNUWIN32__) && !defined(__MINGW32))
- struct timezone tz;
- gettimeofday(&tp, &tz);
- *timeZone = 60*(tz.tz_minuteswest);
- *dstObserved = tz.tz_dsttime;
-#else
- time_t t0;
- struct tm *tp;
- time(&t0);
- tp = localtime(&t0);
- *timeZone = tp->tm_gmtoff; // ???
- *dstObserved = tp->tm_isdst;
-#endif
-#else
-// #error wxGetLocalTime not implemented.
- struct timeval tp;
- struct timezone tz;
- gettimeofday(&tp, &tz);
- *timeZone = 60*(tz.tz_minuteswest);
- *dstObserved = tz.tz_dsttime;
-#endif
-#endif
- // __MINGW32__
- return TRUE;
+ wxTimerEvent event(m_idTimer, m_milli);
+ event.SetEventObject(this);
+ (void)m_owner->ProcessEvent(event);