aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/Date.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-07-31 03:01:47 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-07-31 03:01:47 +0000
commite8b3bcfd3ff814c6c8eab1b4f327785132a52844 (patch)
tree02cb685621d4a339ad0359f2ed2d159e9ca95e13 /libjava/java/util/Date.java
parent8882829102634f06c7da2d98b0dbab1c91039dce (diff)
downloadgcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.zip
gcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.tar.gz
gcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.tar.bz2
* java/util/Date.java: Re-merged with Classpath.
From-SVN: r44497
Diffstat (limited to 'libjava/java/util/Date.java')
-rw-r--r--libjava/java/util/Date.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/util/Date.java b/libjava/java/util/Date.java
index edd45f8..998cec1 100644
--- a/libjava/java/util/Date.java
+++ b/libjava/java/util/Date.java
@@ -667,7 +667,8 @@ public class Date implements Cloneable, Comparable, java.io.Serializable
{
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(time);
- return cal.get(Calendar.DAY_OF_WEEK);
+ // For Calendar, Sunday is 1. For Date, Sunday is 0.
+ return cal.get(Calendar.DAY_OF_WEEK) - 1;
}
/**