Module Js.Date

module Date: Js_date

type t 
val valueOf : t -> float

returns the primitive value of this date, equivalent to getTime
val make : unit -> t

returns a date representing the current time
val fromFloat : float -> t
val fromString : string -> t
val makeWithYM : year:float -> month:float -> unit -> t
val makeWithYMD : year:float -> month:float -> date:float -> unit -> t
val makeWithYMDH : year:float -> month:float -> date:float -> hours:float -> unit -> t
val makeWithYMDHM : year:float ->
month:float ->
date:float -> hours:float -> minutes:float -> unit -> t
val makeWithYMDHMS : year:float ->
month:float ->
date:float ->
hours:float -> minutes:float -> seconds:float -> unit -> t
val utcWithYM : year:float -> month:float -> unit -> float
val utcWithYMD : year:float -> month:float -> date:float -> unit -> float
val utcWithYMDH : year:float -> month:float -> date:float -> hours:float -> unit -> float
val utcWithYMDHM : year:float ->
month:float -> date:float -> hours:float -> minutes:float -> unit -> float
val utcWithYMDHMS : year:float ->
month:float ->
date:float -> hours:float -> minutes:float -> seconds:float -> unit -> float
val now : unit -> float

returns the number of milliseconds since Unix epoch
val parse : string -> t

returns NaN if passed invalid date string
val getDate : t -> float
val getDay : t -> float
return the day of the month (1-31)
val getFullYear : t -> float
returns the day of the week (0-6)
val getHours : t -> float
val getMilliseconds : t -> float
val getMinutes : t -> float
val getMonth : t -> float
val getSeconds : t -> float
returns the month (0-11)
val getTime : t -> float
val getTimezoneOffset : t -> float
returns the number of milliseconds since Unix epoch
val getUTCDate : t -> float
val getUTCDay : t -> float
return the day of the month (1-31)
val getUTCFullYear : t -> float
returns the day of the week (0-6)
val getUTCHours : t -> float
val getUTCMilliseconds : t -> float
val getUTCMinutes : t -> float
val getUTCMonth : t -> float
val getUTCSeconds : t -> float
returns the month (0-11)
val getYear : t -> float
val setDate : t -> float -> float
val setFullYear : t -> float -> float
val setFullYearM : t -> year:float -> month:float -> unit -> float
val setFullYearMD : t -> year:float -> month:float -> date:float -> unit -> float
val setHours : t -> float -> float
val setHoursM : t -> hours:float -> minutes:float -> unit -> float
val setHoursMS : t -> hours:float -> minutes:float -> seconds:float -> unit -> float
val setHoursMSMs : t ->
hours:float ->
minutes:float -> seconds:float -> milliseconds:float -> unit -> float
val setMilliseconds : t -> float -> float
val setMinutes : t -> float -> float
val setMinutesS : t -> minutes:float -> seconds:float -> unit -> float
val setMinutesSMs : t ->
minutes:float -> seconds:float -> milliseconds:float -> unit -> float
val setMonth : t -> float -> float
val setMonthD : t -> month:float -> date:float -> unit -> float
val setSeconds : t -> float -> float
val setSecondsMs : t -> seconds:float -> milliseconds:float -> unit -> float
val setTime : t -> float -> float
val setUTCDate : t -> float -> float
val setUTCFullYear : t -> float -> float
val setUTCFullYearM : t -> year:float -> month:float -> unit -> float
val setUTCFullYearMD : t -> year:float -> month:float -> date:float -> unit -> float
val setUTCHours : t -> float -> float
val setUTCHoursM : t -> hours:float -> minutes:float -> unit -> float
val setUTCHoursMS : t -> hours:float -> minutes:float -> seconds:float -> unit -> float
val setUTCHoursMSMs : t ->
hours:float ->
minutes:float -> seconds:float -> milliseconds:float -> unit -> float
val setUTCMilliseconds : t -> float -> float
val setUTCMinutes : t -> float -> float
val setUTCMinutesS : t -> minutes:float -> seconds:float -> unit -> float
val setUTCMinutesSMs : t ->
minutes:float -> seconds:float -> milliseconds:float -> unit -> float
val setUTCMonth : t -> float -> float
val setUTCMonthD : t -> month:float -> date:float -> unit -> float
val setUTCSeconds : t -> float -> float
val setUTCSecondsMs : t -> seconds:float -> milliseconds:float -> unit -> float
val setUTCTime : t -> float -> float
val setYear : t -> float -> float
val toDateString : t -> string
val toGMTString : t -> string
val toISOString : t -> string
val toJSON : t -> string
val toLocaleDateString : t -> string
val toLocaleString : t -> string
val toLocaleTimeString : t -> string
val toString : t -> string
val toTimeString : t -> string
val toUTCString : t -> string