]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/CDate.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / wx / lib / CDate.py
index d900e0d203a4b059f83a5c5a4951d380bd0addad..76a1a296c60ad5367eaa0a170f6202c58e2c904b 100644 (file)
@@ -4,9 +4,13 @@
 # Author:       Lorne White (email: lwhite1@planet.eon.net)
 #
 # Created:
-# Version       0.2 1999/11/08
+# Version       0.2 08-Nov-1999
 # Licence:      wxWindows license
 #----------------------------------------------------------------------------
+# Updated:      01-Dec-2004
+# Action:       Cast the year variable to an integer under the Date Class
+# Reason:       When the year was compared in the isleap() function, if it was
+#               in a string format, then an error was raised.    
 
 import time
 
@@ -119,7 +123,7 @@ class Date:
     def __init__(self, year, month, day):
         self.julian = julianDay(year, month, day)
         self.month = month
-        self.year = year
+        self.year = int(year)
         self.day_of_week = dayOfWeek(self.julian)
         self.days_in_month = daysPerMonth(self.month, self.year)