xti additions / changes, trying to reduce dependencies

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-08-23 00:40:53 +00:00
parent ae820c693a
commit cb73e6001f
4 changed files with 218 additions and 179 deletions

View File

@@ -82,6 +82,23 @@
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)
#endif
//
// ----------------------------------------------------------------------------
// conditional compilation
// ----------------------------------------------------------------------------