Class type Goog.​Date.​dateTime

class type dateTime = object..end

Inherits


method getHours : int Js.meth
method getMinutes : int Js.meth

Returns the minutes part of the datetime. Returns An integer between 0 and 59, representing the minutes.

method getSeconds : int Js.meth

Returns the seconds part of the datetime. Returns An integer between 0 and 59, representing the seconds.

method getMilliseconds : int Js.meth

Returns the milliseconds part of the datetime. Returns An integer between 0 and 999, representing the milliseconds.

method getUTCDay : int Js.meth

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

method getUTCHours : int Js.meth

Returns the hours part of the datetime according to universal time. Returns An integer between 0 and 23, representing the hour.

method getUTCMinutes : int Js.meth

Returns the minutes part of the datetime according to universal time. Returns An integer between 0 and 59, representing the minutes.

method getUTCSeconds : int Js.meth

Returns the seconds part of the datetime according to universal time. Returns An integer between 0 and 59, representing the seconds.

method getUTCMilliseconds : int Js.meth

Returns the milliseconds part of the datetime according to universal time. Returns An integer between 0 and 999, representing the milliseconds.

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

Sets the hours part of the datetime.

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

Sets the minutes part of the datetime.

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

Sets the seconds part of the datetime.

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

Sets the seconds part of the datetime.

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

Sets the hours part of the datetime according to universal time.

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

Sets the minutes part of the datetime according to universal time.

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

Sets the seconds part of the datetime according to universal time.

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

Sets the seconds part of the datetime according to universal time.

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

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

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/time. Returns ISO 8601 string representation of date/time.

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

Returns XML Schema 2 string representation of date/time. The return value is also ISO 8601 compliant. Returns XML Schema 2 string representation of date/time.

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/time according to universal time. Returns ISO 8601 string representation of date/time according to universal time.

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

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

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

Generates time label for the datetime, e.g., '5:30am'. By default this does not pad hours (e.g., to '05:30') and it does add an am/pm suffix. TODO: i18n -- hardcoding time format like this is bad. E.g., in CJK locales, need Chinese characters for hour and minute units. Returns The time label.

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

Generates time label for the datetime in standard ISO 24-hour time format. E.g., '06:00:00' or '23:30:15'. Returns The time label.