Level 69 Level 71
Level 70

[No Typing] Date & Time


13 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
java.util package
this class encapsulates the current date and time.
Date()
This constructor initializes the object with the current date and time.
Date(long millisec)
This constructor accepts an argument that equals the number of milliseconds that have elapsed since midnight, January 1, 1970
boolean after(Date date)
Returns true if the invoking Date object contains a date that is later than the one specified by date, otherwise, it returns false.
boolean before(Date date)
Returns true if the invoking Date object contains a date that is earlier than the one specified by date, otherwise, it returns false.
Object clone()
Duplicates the invoking Date object.
int compareTo(Date date)
Compares the value of the invoking object with that of date.
int compareTo(Object obj)
Operates identically to compareTo(Date) if obj is of class Date. Otherwise, it throws a ClassCastException.
boolean equals(Object date)
Returns true if the invoking Date object contains the same time and date as the one specified by date, otherwise, it returns false.
long getTime()
Returns the number of milliseconds that have elapsed since January 1, 1970.
int hashCode()
Returns a hash code for the invoking object.
void setTime(long time)
Sets the time and date as specified by time, which represents an elapsed time in milliseconds from midnight, January 1, 1970
String toString()
Converts the invoking Date object into a string and returns the result.