Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Date class represents time as a long integer which is the number of milliseconds measured from January 1, 1970 00:00:00.000 GMT. This starting point is called the epoch. The long value used to represent a point in time comprises both the date and the time of day. The Date class provides the following constructors:
Date() Date(long milliseconds) The default constructor returns the current date and time of day. The second constructor returns the date/time corresponding to the specified milliseconds after the epoch. |