21.3
java.util.Date
THE PACKAGE JAVA.UTIL
zzz
 is the time zone (and may reflect daylight saving time). Standard time
zone abbreviations include those recognized by the method
parse
 ( 21.3.31).
If time zone information is not available, then
zzz
 is empty that is, it con 
sists of no characters at all.
yyyy
 is the year, as four decimal digits.
See also methods
toLocaleString
 ( 21.3.27) and
toGMTString
 ( 21.3.28).
Overrides the
toString
 method of
Object
 ( 20.1.2).
21.3.8
public boolean equals(Object obj)
The result is
true
 if and only if the argument is not
null
 and is a
Date
 object that
represents the same point in time, to the millisecond, as this
Date
 object. Thus
two
Date
 objects are equal if and only if the
getTime
 method ( 21.3.23) returns
the same
long
 value from both.
Overrides the
equals
 method of
Object
 ( 20.1.3).
21.3.9
public int hashCode()
The result is the exclusive OR of the two halves of the primitive
long
 value
returned by the
getTime
 method ( 21.3.23). That is, the hash code is the value of
the expression:
(int)(this.getTime()^(this.getTime()>>>32))
Overrides the
hashCode
 method of
Object
 ( 20.1.4).
21.3.10
public int getYear()
The returned value is the result of subtracting 1900 from the year that contains or
begins with the instant in time represented by this
Date
 object, as interpreted in
the local time zone.
21.3.11
public void setYear(int year)
This
Date
 object is modified so that it represents a point in time within the speci 
fied year, with the month, date, hour, minute, and second the same as before, as
interpreted in the local time zone. (Of course, if the date was February 29, for
example, and the year is set to a non leap year, then the new date will be treated
as if it were on March 1.)
626






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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