THE PACKAGE JAVA.UTIL
java.util.Date
21.3
21.3.4
public Date(int year, int month, int date,
int hours, int minutes)
This constructor initializes a newly created
Date
object so that it represents the
instant at the start of the minute specified by the
year
,
month
,
date
,
hours
, and
minutes
arguments, in the local time zone. Thus, it has the same effect as the con
structor call ( 21.3.5):
Date(year, month, date, hours, minutes, 0)
21.3.5
public Date(int year, int month, int date,
int hours, int minutes, int seconds)
This constructor initializes a newly created
Date
object so that it represents the
instant at the start of the second specified by the
year
,
month
,
date
,
hours
,
minutes
, and
seconds
arguments, in the local time zone.
21.3.6
public Date(String s)
throws IllegalArgumentException
This constructor initializes a newly created
Date
object so that it represents the
date and time indicated by the string s, which is interpreted as if by the
parse
method ( 21.3.31).
21.3.7
public String toString()
This
Date
object is converted to a
String
of the form:
"dow mon dd hh:mm:ss zzz yyyy"
where:
dow
is the day of the week (
Sun
,
Mon
,
Tue
,
Wed
,
Thu
,
Fri
,
Sat
).
mon
is the month (
Jan
,
Feb
,
Mar
,
Apr
,
May
,
Jun
,
Jul
,
Aug
,
Sep
,
Oct
,
Nov
,
Dec
).
dd
is the day of the month (
01
through
31
), as two 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.
625
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