java.lang.Object | ||
↳ | com.google.gwt.core.client.JavaScriptObject | |
↳ | com.google.gwt.core.client.JsDate |
A simple wrapper around a native JS Date object.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Non directly instantiable, use one of the
create() methods. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the internal millisecond representation of the specified UTC date
and time.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date with the current time.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date with the specified internal representation, which is the
number of milliseconds since midnight on January 1st, 1970.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date using the specified values.
| |||||||||||
Creates a new date from a string to be parsed.
| |||||||||||
Returns the day of the month.
| |||||||||||
Returns the day of the week, from
0 (Sunday) to 6
Saturday. | |||||||||||
Returns the four-digit year.
| |||||||||||
Returns the hour, between
0 (midnight) and 23 . | |||||||||||
Returns the milliseconds, between
0 and 999 . | |||||||||||
Returns the minutes, between
0 and 59 . | |||||||||||
Returns the month, from
0 (January) to 6
December. | |||||||||||
Returns the seconds, between
0 and 59 . | |||||||||||
Returns the internal millisecond representation of the date, the number of
milliseconds since midnight on January 1st, 1970.
| |||||||||||
Returns the difference, in minutes, between the local and UTC
representations of this date.
| |||||||||||
Returns the day of the month, in UTC.
| |||||||||||
Returns the day of the week, from
0 (Sunday) to 6
Saturday, in UTC. | |||||||||||
Returns the four-digit year, in UTC.
| |||||||||||
Returns the hour, between
0 (midnight) and 23 , in
UTC. | |||||||||||
Returns the milliseconds, between
0 and 999 , in
UTC. | |||||||||||
Returns the minutes, between
0 and 59 , in UTC. | |||||||||||
Returns the month, from
0 (January) to 6
December, in UTC. | |||||||||||
Returns the seconds, between
0 and 59 , in UTC. | |||||||||||
This method is deprecated.
Use
getFullYear() .
| |||||||||||
Parses a string representation of a date and time and returns the internal
millisecond representation.
| |||||||||||
Sets the day of the month.
| |||||||||||
Sets the year.
| |||||||||||
Sets the year, month, and day.
| |||||||||||
Sets the year and month.
| |||||||||||
Sets the hour and minutes.
| |||||||||||
Sets the hour, minutes, and seconds.
| |||||||||||
Sets the hour.
| |||||||||||
Sets the hour, minutes, seconds, and milliseconds.
| |||||||||||
Sets the minutes, seconds, and milliseconds.
| |||||||||||
Sets the minutes.
| |||||||||||
Sets the minutes and seconds.
| |||||||||||
Sets the month.
| |||||||||||
Sets the month and day.
| |||||||||||
Sets the seconds and milliseconds.
| |||||||||||
Sets the seconds.
| |||||||||||
Sets the internal date representation.
| |||||||||||
Sets the day of the month, in UTC.
| |||||||||||
Sets the year, in UTC.
| |||||||||||
Sets the year and month, in UTC.
| |||||||||||
Sets the year, month, and day, in UTC.
| |||||||||||
Sets the hour, in UTC.
| |||||||||||
Sets the hour and minutes, in UTC.
| |||||||||||
Sets the hour, minutes, and seconds, in UTC.
| |||||||||||
Sets the hour, minutes, seconds, and milliseconds, in UTC.
| |||||||||||
Sets the minutes, in UTC.
| |||||||||||
Sets the minutes, seconds, and milliseconds, in UTC.
| |||||||||||
Sets the minutes and seconds, in UTC.
| |||||||||||
Sets the month, in UTC.
| |||||||||||
Sets the month and day, in UTC.
| |||||||||||
Sets the seconds and milliseconds, in UTC.
| |||||||||||
Sets the seconds, in UTC.
| |||||||||||
This method is deprecated.
Use
setFullYear(int) .
| |||||||||||
Returns a date string in the local time zone.
| |||||||||||
This method is deprecated.
Use
toUTCString() .
| |||||||||||
Returns a date string in the local time zone according to local formatting
conventions.
| |||||||||||
Returns a date and time string in the local time zone according to local
formatting conventions.
| |||||||||||
Returns a time string in the local time zone according to local formatting
conventions.
| |||||||||||
Returns a time string in the local time zone.
| |||||||||||
Returns a date and time string in UTC.
| |||||||||||
Returns the millisecond representation, as
getTime() . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Returns the internal millisecond representation of the specified UTC date and time.
Creates a new date using the specified values.
Creates a new date using the specified values.
Creates a new date using the specified values.
Creates a new date with the specified internal representation, which is the
number of milliseconds since midnight on January 1st, 1970. This is the
same representation returned by getTime()
.
Creates a new date using the specified values.
Creates a new date using the specified values.
Returns the day of the month.
Returns the day of the week, from 0
(Sunday) to 6
Saturday.
Returns the four-digit year.
Returns the hour, between 0
(midnight) and 23
.
Returns the milliseconds, between 0
and 999
.
Returns the minutes, between 0
and 59
.
Returns the month, from 0
(January) to 6
December.
Returns the seconds, between 0
and 59
.
Returns the internal millisecond representation of the date, the number of
milliseconds since midnight on January 1st, 1970. This is the same
representation returned by getTime()
.
Returns the difference, in minutes, between the local and UTC representations of this date. The value returned is affected by whether or not daylight savings time would be in effect on specified date.
Returns the day of the month, in UTC.
Returns the day of the week, from 0
(Sunday) to 6
Saturday, in UTC.
Returns the four-digit year, in UTC.
Returns the hour, between 0
(midnight) and 23
, in
UTC.
Returns the milliseconds, between 0
and 999
, in
UTC.
Returns the minutes, between 0
and 59
, in UTC.
Returns the month, from 0
(January) to 6
December, in UTC.
Returns the seconds, between 0
and 59
, in UTC.
Parses a string representation of a date and time and returns the internal
millisecond representation. If the string cannot be parsed, the returned
value will be NaN
. Use isNaN(double)
to check
the result.
Sets the day of the month. Returns the millisecond representation of the adjusted date.
Sets the year. Returns the millisecond representation of the adjusted date.
Sets the year, month, and day. Returns the millisecond representation of the adjusted date.
Sets the year and month. Returns the millisecond representation of the adjusted date.
Sets the hour and minutes. Returns the millisecond representation of the adjusted date.
Sets the hour, minutes, and seconds. Returns the millisecond representation of the adjusted date.
Sets the hour. Returns the millisecond representation of the adjusted date.
Sets the hour, minutes, seconds, and milliseconds. Returns the millisecond representation of the adjusted date.
Sets the minutes, seconds, and milliseconds. Returns the millisecond representation of the adjusted date.
Sets the minutes. Returns the millisecond representation of the adjusted date.
Sets the minutes and seconds. Returns the millisecond representation of the adjusted date.
Sets the month. Returns the millisecond representation of the adjusted date.
Sets the month and day. Returns the millisecond representation of the adjusted date.
Sets the seconds and milliseconds. Returns the millisecond representation of the adjusted date.
Sets the seconds. Returns the millisecond representation of the adjusted date.
Sets the internal date representation. Returns the
milliseconds
argument.
Sets the day of the month, in UTC. Returns the millisecond representation of the adjusted date.
Sets the year, in UTC. Returns the millisecond representation of the adjusted date.
Sets the year and month, in UTC. Returns the millisecond representation of the adjusted date.
Sets the year, month, and day, in UTC. Returns the millisecond representation of the adjusted date.
Sets the hour, in UTC. Returns the millisecond representation of the adjusted date.
Sets the hour and minutes, in UTC. Returns the millisecond representation of the adjusted date.
Sets the hour, minutes, and seconds, in UTC. Returns the millisecond representation of the adjusted date.
Sets the hour, minutes, seconds, and milliseconds, in UTC. Returns the millisecond representation of the adjusted date.
Sets the minutes, in UTC. Returns the millisecond representation of the adjusted date.
Sets the minutes, seconds, and milliseconds, in UTC. Returns the millisecond representation of the adjusted date.
Sets the minutes and seconds, in UTC. Returns the millisecond representation of the adjusted date.
Sets the month, in UTC. Returns the millisecond representation of the adjusted date.
Sets the month and day, in UTC. Returns the millisecond representation of the adjusted date.
Sets the seconds and milliseconds, in UTC. Returns the millisecond representation of the adjusted date.
Sets the seconds, in UTC. Returns the millisecond representation of the adjusted date.
Returns a date string in the local time zone according to local formatting conventions.
Returns a date and time string in the local time zone according to local formatting conventions.
Returns a time string in the local time zone according to local formatting conventions.