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:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user