21.3
java.util.Date
THE PACKAGE JAVA.UTIL
yyyy
 is the year, as four decimal digits.
hh
 is the hour of the day (
00
 through
23
), as two decimal digits.
mm
 is the minute within the hour (
00
 through
59
), as two decimal digits.
ss
 is the second within the minute (
00
 through
61
), as two decimal digits.
GMT
 is exactly the ASCII letters  
GMT
  to indicate Greenwich Mean Time.
The result does not depend on the local time zone.
See also methods
toString
 ( 21.3.7) and
toLocaleString
 ( 21.3.27).
21.3.29
public int getTimezoneOffset()
This method returns the offset, measured in minutes, for the local time zone rela 
tive to UTC that is appropriate for the time represented by this
Date
 object.
For example, in Massachusetts, five time zones west of Greenwich:
new Date(96, 1, 14).getTimezoneOffset()
returns
 300
because on February 14, 1996, standard time (Eastern Standard Time) is in use,
which is offset five hours from UTC; but:
new Date(96, 5, 1).getTimezoneOffset()
returns
 240
because on May 1, 1996, daylight saving time (Eastern Daylight Time) is in use,
which is offset only four hours from UTC.
This method produces the same result as if it computed:
(this.getTime()   UTC(this.getYear(),
this.getMonth(),
this.getDate(),
this.getHours(),
this.getMinutes(),
this.getSeconds())) / (60 * 1000)
21.3.30
public static long UTC(int year, int month, int date,
int hours, int minutes, int seconds)
The arguments are interpreted as a year, month, day of the month, hour of the day,
minute within the hour, and second within the minute, exactly as for the
Date
 con 
structor of six arguments ( 21.3.5), except that the arguments are interpreted rela 
tive to UTC rather than to the local time zone. The time indicated is returned
represented as the distance, measured in milliseconds, of that time from the epoch
(00:00:00 GMT on January 1, 1970).
630






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