Make wxDateTime::Tm::yday public and document it.
There doesn't seem any reason to allow access to all the other struct Tm fields but not yday so make it public, fill it in correctly when creating Tm without using its ctor from struct tm and document struct Tm itself including its yday field. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1616,6 +1616,7 @@ wxDateTime::Tm wxDateTime::GetTm(const TimeZone& tz) const
|
||||
// construct Tm from these values
|
||||
Tm tm;
|
||||
tm.year = (int)year;
|
||||
tm.yday = (wxDateTime_t)(dayOfYear - 1); // use C convention for day number
|
||||
tm.mon = (Month)(month - 1); // algorithm yields 1 for January, not 0
|
||||
tm.mday = (wxDateTime_t)day;
|
||||
tm.msec = (wxDateTime_t)(timeOnly % 1000);
|
||||
|
||||
Reference in New Issue
Block a user