Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.util.Date

Availability: JDK 1.0

public class Date extends Object implements Serializable, Cloneable {
   // Public Constructors
      public Date();
      public Date(long date);
#    public Date(int year, int month, int date);
#    public Date(int year, int month, int date, int hrs, int min);
#    public Date(int year, int month, int date, int hrs, int min, int sec);
#    public Date(String s);
   // Class Methods
#    public static long UTC(int year, int month, int date, int hrs, int min, int sec);
#    public static long parse(String s);
   // Public Instance Methods
      public boolean after(Date when);
      public boolean before(Date when);
      public boolean equals(Object obj);  // Overrides Object.equals()
#    public int getDate();
#    public int getDay();
#    public int getHours();
#    public int getMinutes();
#    public int getMonth();
#    public int getSeconds();
      public long getTime();
#    public int getTimezoneOffset();
#    public int getYear();
      public int hashCode();  // Overrides Object.hashCode()
#    public void setDate(int date);
#    public void setHours(int hours);
#    public void setMinutes(int minutes);
#    public void setMonth(int month);
#    public void setSeconds(int seconds);
      public void setTime(long time);
#    public void setYear(int year);
#    public String toGMTString();
#    public String toLocaleString();
      public String toString();  // Overrides Object.toString()
}
Extended By:
Date, Time, Timestamp.
Passed To:
Calendar.setTime(), Date.after(), Date.before(), DateFormat.format(), GregorianCalendar.setGregorianChange(), SimpleDateFormat.format(), SimpleTimeZone.inDaylightTime(), TimeZone.inDaylightTime().
Returned By:
Calendar.getTime(), DateFormat.parse(), GregorianCalendar.getGregorianChange(), SimpleDateFormat.parse().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.