21.3
java.util.Date
THE PACKAGE JAVA.UTIL
21.3 The Class
java.util.Date
The class
Date
provides a system independent abstraction of dates and times, to a
millisecond precision. Dates may be constructed from a year, month, date (day of
month), hour, minute, and second; those six components and the day of the week,
may be extracted; and dates may be compared and converted to a readable string.
public class Date {
public Date();
public Date(long time);
public Date(int year, int month, int date);
public Date(int year, int month, int date,
int hours, int minutes);
public Date(int year, int month, int date,
int hours, int minutes, int seconds);
public Date(String s) throws IllegalArgumentException;
public String toString();
public boolean equals(Object obj);
public int hashCode();
public int getYear();
public void setYear(int year);
public int getMonth();
public void setMonth(int month);
public int getDate();
public void setDate(int date);
public int getDay();
public int getHours();
public void setHours(int hours);
public int getMinutes();
public void setMinutes(int minutes);
public int getSeconds();
public void setSeconds(int seconds);
public long getTime();
public void setTime(long time);
public boolean before(Date when);
public boolean after(Date when);
public String toLocaleString();
public String toGMTString();
public int getTimezoneOffset();
public static long UTC(int year, int month, int date,
int hours, int minutes, int seconds);
public static long parse(String s)
throws IllegalArgumentException;
}
622
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved