.
represents a specific moment in time, to the millisecond.
|
Public Member Functions |
| | Date () |
| | Initializes this Date instance to the current date and time.
|
| | Date (int year, int month, int day) |
| | Constructs a new Date initialized to midnight in the default TimeZone on the specified date.
|
| | Date (int year, int month, int day, int hour, int minute) |
| | Constructs a new Date initialized to the specified date and time in the default TimeZone.
|
| | Date (int year, int month, int day, int hour, int minute, int second) |
| | Constructs a new Date initialized to the specified date and time in the default TimeZone.
|
| | Date (long milliseconds) |
| | Initializes this Date instance using the specified millisecond value.
|
| | Date (String string) |
| | Constructs a new Date initialized to the date and time parsed from the specified String.
|
| boolean | after (Date date) |
| | Answers if this Date is after the specified Date.
|
| boolean | before (Date date) |
| | Boolean indication of whether or not this Date occurs earlier than the Date argument.
|
| Object | clone () |
| | Answers a new Date with the same millisecond value as this Date.
|
| int | compareTo (Date date) |
| | Compare the receiver to the specified Date to determine the relative ordering.
|
| boolean | equals (Object object) |
| | Compares the specified object to this Date and answer if they are equal.
|
| int | getDate () |
| | Answers the gregorian calendar day of the month for this Date object.
|
| int | getDay () |
| | Answers the gregorian calendar day of the week for this Date object.
|
| int | getHours () |
| | Answers the gregorian calendar hour of the day for this Date object.
|
| int | getMinutes () |
| | Answers the gregorian calendar minute of the hour for this Date object.
|
| int | getMonth () |
| | Answers the gregorian calendar month for this Date object.
|
| int | getSeconds () |
| | Answers the gregorian calendar second of the minute for this Date object.
|
| long | getTime () |
| | Answers this Date as a millisecond value.
|
| int | getTimezoneOffset () |
| | Answers the timezone offset in minutes of the default TimeZone.
|
| int | getYear () |
| | Answers the gregorian calendar year since 1900 for this Date object.
|
| int | hashCode () |
| | Answers an integer hash code for the receiver.
|
| void | setDate (int day) |
| | Sets the gregorian calendar day of the month for this Date object.
|
| void | setHours (int hour) |
| | Sets the gregorian calendar hour of the day for this Date object.
|
| void | setMinutes (int minute) |
| | Sets the gregorian calendar minute of the hour for this Date object.
|
| void | setMonth (int month) |
| | Sets the gregorian calendar month for this Date object.
|
| void | setSeconds (int second) |
| | Sets the gregorian calendar second of the minute for this Date object.
|
| void | setTime (long milliseconds) |
| | Sets this Date to the specified millisecond value.
|
| void | setYear (int year) |
| | Sets the gregorian calendar year since 1900 for this Date object.
|
| String | toGMTString () |
| | Answers the string representation of this Date in GMT in the format: 22 Jun 1999 13:02:00 GMT.
|
| String | toLocaleString () |
| | Answers the string representation of this Date for the current Locale.
|
| String | toString () |
| | Answers the string representation of this Date in the format: Tue Jun 22 13:07:00 GMT 1999.
|
Static Public Member Functions |
| static long | parse (String string) |
| | Answers the millisecond value of the date and time parsed from the specified String.
|
| static long | UTC (int year, int month, int day, int hour, int minute, int second) |
| | Answers the millisecond value of the specified date and time in GMT.
|
Private Member Functions |
| void | writeObject (ObjectOutputStream stream) throws IOException |
| void | readObject (ObjectInputStream stream) throws IOException, ClassNotFoundException |
Static Private Member Functions |
| static int | parse (String string, String[] array) |
| static DateTime | parseInternal (String string) |
| static int | zone (String text) |
Private Attributes |
| transient DateTime | datetime |
Static Private Attributes |
| static final long | serialVersionUID = 7523967970034938905L |
| static int | creationYear = new Date().getYear() |