Js.Date
Provide bindings for JS Date
JavaScript Date API
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 parse : string -> t
val getDate : t -> float
return the day of the month (1-31)
val getDay : t -> float
returns the day of the week (0-6)
val getFullYear : t -> float
val getHours : t -> float
val getMilliseconds : t -> float
val getMinutes : t -> float
val getMonth : t -> float
returns the month (0-11)
val getSeconds : t -> float
val getTime : t -> float
returns the number of milliseconds since Unix epoch
val getTimezoneOffset : t -> float
val getUTCDate : t -> float
return the day of the month (1-31)
val getUTCDay : t -> float
returns the day of the week (0-6)
val getUTCFullYear : t -> float
val getUTCHours : t -> float
val getUTCMilliseconds : t -> float
val getUTCMinutes : t -> float
val getUTCMonth : t -> float
returns the month (0-11)
val getUTCSeconds : t -> float
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 toJSONUnsafe : 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