* java/util/Date.java: Re-merged with Classpath.
From-SVN: r44497
This commit is contained in:
parent
8882829102
commit
e8b3bcfd3f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-07-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/util/Date.java: Re-merged with Classpath.
|
||||
|
||||
2001-07-30 Jeff Sturm <jsturm@one-point.com>
|
||||
|
||||
* java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue