+wxDateTime wxFileName::GetModificationTime()
+{
+#ifdef __WXGTK__
+ struct stat buff;
+ stat( GetFullName().fn_str(), &buff );
+
+#if !defined( __EMX__ ) && !defined(__VMS)
+ struct stat lbuff;
+ lstat( GetFullName().fn_str(), &lbuff );
+ struct tm *t = localtime( &lbuff.st_mtime );
+#else
+ struct tm *t = localtime( &buff.st_mtime );
+#endif
+
+ wxDateTime ret( t->tm_mday, (wxDateTime::Month)t->tm_mon, t->tm_year+1900, t->tm_hour, t->tm_min, t->tm_sec );
+#else
+
+ wxDateTime ret = wxDateTime::Now();
+
+#endif
+ return ret;
+}
+