]> git.saurik.com Git - wxWidgets.git/commitdiff
Added SetToWeekOfYear, deprecated SetToTheWeek and GetWeek
authorRobin Dunn <robin@alldunn.com>
Mon, 13 Sep 2004 23:23:18 +0000 (23:23 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 13 Sep 2004 23:23:18 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_datetime.i

index e1d03a945bc7136e4375ab245e93a7cb9fdbbb01..e33a8e756f31d2cfaca21543295250d2559bc5a6 100644 (file)
@@ -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,