From: Robin Dunn Date: Mon, 13 Sep 2004 23:23:18 +0000 (+0000) Subject: Added SetToWeekOfYear, deprecated SetToTheWeek and GetWeek X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/19e14bf6d5e88d4d66299f96c9491b04cf27fd07 Added SetToWeekOfYear, deprecated SetToTheWeek and GetWeek git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_datetime.i b/wxPython/src/_datetime.i index e1d03a945b..e33a8e756f 100644 --- a/wxPython/src/_datetime.i +++ b/wxPython/src/_datetime.i @@ -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,