X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd04159e75dc31091460bf2322c77e95a6824196..f2ac038698d45e486f0300e8b7a2f83392c1d153:/wxPython/src/_datetime.i diff --git a/wxPython/src/_datetime.i b/wxPython/src/_datetime.i index dd08788512..e33a8e756f 100644 --- a/wxPython/src/_datetime.i +++ b/wxPython/src/_datetime.i @@ -366,7 +366,7 @@ public: DocDeclAStr( static void, GetAmPmStrings(wxString *OUTPUT, wxString *OUTPUT), "GetAmPmStrings() -> (am, pm)", - "Get the AM and PM strings in the current locale (may be empty)"); + "Get the AM and PM strings in the current locale (may be empty)", ""); // return True if the given country uses DST for this year static bool IsDSTApplicable(int year = Inv_Year, @@ -507,6 +507,17 @@ public: bool SetToTheWeek(wxDateTime_t numWeek, WeekDay weekday = Mon, WeekFlags flags = Monday_First); wxDateTime GetWeek(wxDateTime_t numWeek, WeekDay weekday = Mon, WeekFlags flags = Monday_First); + %pythoncode { + SetToTheWeek = wx._deprecated(SetToTheWeek, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead") + GetWeek = wx._deprecated(GetWeek, "GetWeek is deprecated, use GetWeekOfYear instead") + } + + // returns the date corresponding to the given week day of the given + // week (in ISO notation) of the specified year + static wxDateTime SetToWeekOfYear(int year, + wxDateTime_t numWeek, + WeekDay weekday = Mon); + // sets the date to the last day of the given (or current) month or the // given (or current) year wxDateTime& SetToLastMonthDay(Month month = Inv_Month,