Date class

YAMAGUCHI Yuji yamag at distribution.co.jp
Sat Mar 27 14:33:21 PST 1999


Hi,

Here is the little patch for Date class.

Index: Date.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/java/util/Date.java,v
retrieving revision 1.8
diff -u -r1.8 Date.java
--- Date.java	1999/03/24 01:14:49	1.8
+++ Date.java	1999/03/27 23:18:18
@@ -164,7 +164,7 @@
 public int getYear() {
 	Calendar cal = Calendar.getInstance();
 	cal.setTime(this);
-	return (cal.get(Calendar.YEAR)-1990);
+	return (cal.get(Calendar.YEAR)-1900);
 }
 
 public int hashCode() {

--
// YAMAGUCHI Yuji - yamag at distribution.co.jp -
// Freeware Distribution Services Co.,Ltd.


More information about the kaffe mailing list