+ // time functions
+
+ // set the file creation and last access/mod times
+ // (any of the pointers may be NULL)
+ bool SetTimes(const wxDateTime *dtCreate,
+ const wxDateTime *dtAccess,
+ const wxDateTime *dtMod);
+
+ // set the access and modification times to the current moment
+ bool Touch();
+
+ // return the last access, last modification and last change times
+ // (any of the pointers may be NULL)
+ bool GetTimes(wxDateTime *dtAccess,
+ wxDateTime *dtMod,
+ wxDateTime *dtChange) const;
+
+ // convenience wrapper: get just the last mod time of the file
+ wxDateTime GetModificationTime() const
+ {
+ wxDateTime dtMod;
+ (void)GetTimes(NULL, &dtMod, NULL);
+ return dtMod;
+ }
+