X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18c7af7e809bbbc68b71f109e352dc0297e9e05a..414b7b40164c4b146c4518d4873cbee9570a222e:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index c65e1f64d8..7f0aed8532 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -564,7 +564,7 @@ public: // ------------------------------------------------------------------------ // default ctor does not initialize the object, use Set()! - wxDateTime() { m_time = wxLongLong((long)ULONG_MAX, ULONG_MAX); } + wxDateTime() { m_time = wxLongLong(LONG_MIN, 0); } // from time_t: seconds since the Epoch 00:00:00 UTC, Jan 1, 1970) #if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400)) @@ -639,6 +639,10 @@ public: // resets time to 00:00:00, doesn't change the date wxDateTime& ResetTime(); + // get the date part of this object only, i.e. the object which has the + // same date as this one but time of 00:00:00 + wxDateTime GetDateOnly() const; + // the following functions don't change the values of the other // fields, i.e. SetMinute() won't change either hour or seconds value