]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
implemented IsModified() and DiscardEdits()
[wxWidgets.git] / src / common / datetime.cpp
index 9335c17f0cf7afe926603bda70ec7e49b0548dd3..45e40a662478bc0679f02fb23b448d44c4baa143 100644 (file)
 
 const long wxDateTime::TIME_T_FACTOR = 1000l;
 
+#if wxUSE_EXTENDED_RTTI
+
+template<> void wxStringReadValue(const wxString &s , wxDateTime &data )
+{
+    data.ParseFormat(s,wxT("%Y-%m-%d %H:%M:%S")) ;
+}
+
+template<> void wxStringWriteValue(wxString &s , const wxDateTime &data )
+{
+    s = data.Format(wxT("%Y-%m-%d %H:%M:%S")) ;
+}
+
+WX_CUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringConverter<wxDateTime>)
+
+#endif
+
+//
 // ----------------------------------------------------------------------------
 // conditional compilation
 // ----------------------------------------------------------------------------