Java com.google.gwt.core.client JsDate fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.core.client JsDate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.core.client JsDate.

The text is from its open source code.

Method

JsDatecreate()
Creates a new date with the current time.
JsDatecreate(double milliseconds)
Creates a new date with the specified internal representation, which is the number of milliseconds since midnight on January 1st, 1970.
JsDatecreate(String dateString)
Creates a new date from a string to be parsed.
JsDatecreate(int year, int month, int dayOfMonth)
Creates a new date using the specified values.
intgetDate()
Returns the day of the month.
intgetDay()
Returns the day of the week, from 0 (Sunday) to 6 Saturday.
intgetFullYear()
Returns the four-digit year.
intgetMilliseconds()
Returns the milliseconds, between 0 and 999.
intgetMonth()
Returns the month, from 0 (January) to 6 December.
doublegetTime()
Returns the internal millisecond representation of the date, the number of milliseconds since midnight on January 1st, 1970.
intgetTimezoneOffset()
Returns the difference, in minutes, between the local and UTC representations of this date.
doubleparse(String dateString)
Parses a string representation of a date and time and returns the internal millisecond representation.
doublesetDate(int dayOfMonth)
Sets the day of the month.
doublesetHours(int hours, int mins, int secs, int ms)
Sets the hour, minutes, seconds, and milliseconds.
doubleUTC(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.