Timestamp.Timestamp

Timestamp.Timestamp

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Timestamp( int year, int month, int date, int hour, int minute, int second, int nano )
Parameters
year
year-1900
month
0 to 11
day
1 to 31
hour
0 to 23
minute
0 to 59
second
0 to 59
nano
0 to 999,999,999
Description
Construct a Timestamp Object



Syntax 2
public Timestamp( long time )
Parameters
time
milliseconds since January 1, 1970, 00:00:00 GMT
Description
Construct a Timestamp using a milliseconds time value. The integral seconds are stored in the underlying date value; the fractional seconds are stored in the nanos value.