Class type Goog.​Date.​date

class type date = object..end

method add : interval Js.t -> unit Js.meth

Performs date calculation by adding the supplied interval to the date.

method clone : 
(< add : interval Js.t -> unit Js.meth; clone : 'a;
equals : 'b Js.t -> bool Js.t Js.meth; getDate : int Js.meth;
getDay : int Js.meth; getDayOfYear : int Js.meth;
getFirstDayOfWeek : int Js.meth; getFirstWeekCutOffDay : int Js.meth;
getFullYear : int Js.meth; getIsoWeekday : int Js.meth;
getMonth : int Js.meth; getNumberOfDaysInMonth : int Js.meth;
getTime : float Js.t Js.meth; getTimezoneOffset : int Js.meth;
getTimezoneOffsetString : Js.js_string Js.t Js.meth;
getUTCDate : int Js.meth; getUTCDay : int Js.meth;
getUTCFullYear : int Js.meth; getUTCHours : int Js.meth;
getUTCIsoWeekday : int Js.meth; getUTCMinutes : int Js.meth;
getUTCMonth : int Js.meth; getUTCWeekday : int Js.meth;
getWeekNumber : int Js.meth; getWeekday : int Js.meth;
getYear : int Js.meth; set : date Js.t -> unit Js.meth;
setDate : int -> float Js.t Js.meth;
setFirstDayOfWeek : int -> unit Js.meth;
setFirstWeekCutOffDay : int -> unit Js.meth;
setFullYear : int -> float Js.t Js.meth;
setMonth : int -> float Js.t Js.meth;
setTime : float -> float Js.t Js.meth;
setUTCDate : int -> float Js.t Js.meth;
setUTCFullYear : int -> float Js.t Js.meth;
setUTCMonth : int -> float Js.t Js.meth; setYear : int -> unit Js.meth;
toIsoString : bool Js.t Js.opt ->
bool Js.t Js.opt -> Js.js_string Js.t Js.meth;
toString : Js.js_string Js.t Js.meth;
toUTCIsoString : bool Js.t Js.opt ->
bool Js.t Js.opt -> Js.js_string Js.t Js.meth;
valueOf : float Js.t Js.meth; .. >
as 'b)
Js.t Js.meth as 'a

Returns A clone of the date object.

method equals : 'b Js.t -> bool Js.t Js.meth

Tests whether given date is equal to this Date. Note: This ignores units more precise than days (hours and below) and also ignores timezone considerations. Returns Whether the given date is equal to this one.

method getDate : int Js.meth

Returns The date of month.

method getDay : int Js.meth

Returns The day of week, US style. 0 = Sun, 6 = Sat.

method getDayOfYear : int Js.meth

Returns The day of year.

method getFirstDayOfWeek : int Js.meth

Returns The first day of the week. 0 = Mon, 6 = Sun.

method getFirstWeekCutOffDay : int Js.meth

Returns The cut off weekday used for week number calculations. 0 = Mon, 6 = Sun.

method getFullYear : int Js.meth

Returns The four digit year of date.

method getIsoWeekday : int Js.meth

Returns The day of week, ISO style. 0 = Mon, 6 = Sun.

method getMonth : int Js.meth

Returns The month of date, 0 = Jan, 11 = Dec.

method getNumberOfDaysInMonth : int Js.meth

Returns The number of days for the selected month.

method getTime : float Js.t Js.meth

Returns the number of milliseconds since 1 January 1970 00:00:00. Returns The number of milliseconds since 1 January 1970 00:00:00.

method getTimezoneOffset : int Js.meth

Returns timezone offset. The timezone offset is the delta in minutes between UTC and your local time. E.g., UTC+10 returns -600. Daylight savings time prevents this value from being constant. Returns The timezone offset.

method getTimezoneOffsetString : Js.js_string Js.t Js.meth

Returns timezone offset as a string. Returns offset in +-HH:mm format or Z for UTC. Returns The timezone offset as a string.

method getUTCDate : int Js.meth

Returns The date of month according to universal time.

method getUTCDay : int Js.meth

Returns The day of week according to universal time, US style. 0 = Sun, 1 = Mon, 6 = Sat.

method getUTCFullYear : int Js.meth

Returns The four digit year of date according to universal time.

method getUTCHours : int Js.meth

Returns The hours value according to universal time.

method getUTCIsoWeekday : int Js.meth

Returns The day of week according to universal time, ISO style. 0 = Mon, 6 = Sun.

method getUTCMinutes : int Js.meth

Returns The hours value according to universal time.

method getUTCMonth : int Js.meth

Returns The month of date according to universal time, 0 = Jan, 11 = Dec.

method getUTCWeekday : int Js.meth

Returns The day of week according to universal time and firstDayOfWeek setting.

method getWeekNumber : int Js.meth

Returns The week number.

method getWeekday : int Js.meth

Returns The day of week according to firstDayOfWeek setting.

method getYear : int Js.meth

Alias for getFullYear. Returns The four digit year of date.

method set : date Js.t -> unit Js.meth

Sets the date.

method setDate : int -> float Js.t Js.meth

Sets the day part of the date.

method setFirstDayOfWeek : int -> unit Js.meth

Sets the first day of week.

method setFirstWeekCutOffDay : int -> unit Js.meth

Sets cut off weekday used for week number calculations. 0 = Mon, 6 = Sun.

method setFullYear : int -> float Js.t Js.meth

Sets the year part of the date.

method setMonth : int -> float Js.t Js.meth

Sets the month part of the date.

method setTime : float -> float Js.t Js.meth

Sets the value of the date object as expressed in the number of milliseconds since 1 January 1970 00:00:00.

method setUTCDate : int -> float Js.t Js.meth

Sets the day part of the date according to universal time.

method setUTCFullYear : int -> float Js.t Js.meth

Sets the year part of the date according to universal time.

method setUTCMonth : int -> float Js.t Js.meth

Sets the month part of the date according to universal time.

method setYear : int -> unit Js.meth

Alias for setFullYear.

method toIsoString : 
bool Js.t Js.opt -> bool Js.t Js.opt -> Js.js_string Js.t Js.meth

Returns ISO 8601 string representation of date. Returns ISO 8601 string representation of date.

method toString : Js.js_string Js.t Js.meth

Overloaded toString method for object. Returns ISO 8601 string representation of date.

method toUTCIsoString : 
bool Js.t Js.opt -> bool Js.t Js.opt -> Js.js_string Js.t Js.meth

Returns ISO 8601 string representation of date according to universal time. Returns ISO 8601 string representation of date according to universal time.

method valueOf : float Js.t Js.meth

Returns Value of wrapped date.