added wxDateTime::GetDateOnly()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-18 14:06:37 +00:00
parent 75d0223f8c
commit fb96cf856e
5 changed files with 49 additions and 0 deletions

View File

@@ -1496,6 +1496,16 @@ wxDateTime& wxDateTime::ResetTime()
return *this;
}
wxDateTime wxDateTime::GetDateOnly() const
{
Tm tm = GetTm();
tm.msec =
tm.sec =
tm.min =
tm.hour = 0;
return wxDateTime(tm);
}
// ----------------------------------------------------------------------------
// DOS Date and Time Format functions
// ----------------------------------------------------------------------------