Example usage for Java com.google.gwt.core.client JsDate fields, constructors, methods, implement or subclass
The text is from its open source code.
JsDate | create() Creates a new date with the current time. |
JsDate | create(double milliseconds) Creates a new date with the specified internal representation, which is the number of milliseconds since midnight on January 1st, 1970. |
JsDate | create(String dateString) Creates a new date from a string to be parsed. |
JsDate | create(int year, int month, int dayOfMonth) Creates a new date using the specified values. |
int | getDate() Returns the day of the month. |
int | getDay() Returns the day of the week, from 0 (Sunday) to 6 Saturday. |
int | getFullYear() Returns the four-digit year. |
int | getMilliseconds() Returns the milliseconds, between 0 and 999 . |
int | getMonth() Returns the month, from 0 (January) to 6 December. |
double | getTime() Returns the internal millisecond representation of the date, the number of milliseconds since midnight on January 1st, 1970. |
int | getTimezoneOffset() Returns the difference, in minutes, between the local and UTC representations of this date. |
double | parse(String dateString) Parses a string representation of a date and time and returns the internal millisecond representation. |
double | setDate(int dayOfMonth) Sets the day of the month. |
double | setHours(int hours, int mins, int secs, int ms) Sets the hour, minutes, seconds, and milliseconds. |
double | UTC(int year, int month, int dayOfMonth, int hours, int minutes, int seconds, int millis) Returns the internal millisecond representation of the specified UTC date and time. |