[Mono-bugs] [Bug 71510][Wis] New - Hebrew calendar issues

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 20 Jan 2005 03:49:25 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by juancri@tagnet.org.

http://bugzilla.ximian.com/show_bug.cgi?id=71510

--- shadow/71510	2005-01-20 03:49:25.000000000 -0500
+++ shadow/71510.tmp.11608	2005-01-20 03:49:25.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 71510
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juancri@tagnet.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Hebrew calendar issues
+
+1.- The hebrew calendar (System.Globalization.HebrewCalendar) can handler
+years from 5343 to 6000 (1582 to 2240 in the gregorian calendar).
+
+The property TwoDigitYearMax checks for the min. 100 and max M_MaxYear...
+
+the check must be between M_MinYear and M_MaxYear [not 100 and M_MaxYear].
+
+
+2.- The implementation of the ToFourDigitYear method is:
+
+        public override int ToFourDigitYear (int year)
+        {
+                M_ArgumentInRange ("year", year, 0, 99);
+
+                int baseExtra = this.twoDigitYearMax % 100;
+                int baseCentury = this.twoDigitYearMax - baseExtra;
+
+                if (year <= baseExtra)
+                        return baseCentury + year;
+                else
+                        return baseCentury + year - 100;
+        }