package ocaml-js-stdlib

  1. Overview
  2. Docs
type t = private Ojs.t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val now : unit -> t
val from_milliseconds : float -> t
val from_string : string -> t
val create : year:int -> month:int -> ?day:int -> ?hours:int -> ?minutes:int -> ?seconds:int -> ?ms:int -> unit -> t
val get_UTC_date : t -> int
val get_UTC_day : t -> int
val get_UTC_full_year : t -> int
val get_UTC_hours : t -> int
val get_UTC_milliseconds : t -> int
val get_UTC_minutes : t -> int
val get_UTC_month : t -> int
val get_UTC_seconds : t -> int
val set_UTC_date : t -> int -> unit
val set_UTC_full_year : t -> int -> unit
val set_UTC_hours : t -> int -> unit
val set_UTC_milliseconds : t -> int -> unit
val set_UTC_minutes : t -> int -> unit
val set_UTC_month : t -> int -> unit
val set_UTC_seconds : t -> int -> unit
val get_date : t -> int
val get_day : t -> int
val get_full_year : t -> int
val get_hours : t -> int
val get_milliseconds : t -> int
val get_minutes : t -> int
val get_month : t -> int
val get_seconds : t -> int
val set_date : t -> int -> unit
val set_full_year : t -> int -> unit
val set_hours : t -> int -> unit
val set_milliseconds : t -> int -> unit
val set_minutes : t -> int -> unit
val set_month : t -> int -> unit
val set_seconds : t -> int -> unit
val get_time : t -> float
val set_time : t -> float -> unit
val get_timezone_offset : t -> int
val to_locale_date_string : t -> string
val to_locale_string : t -> string
val to_locale_time_string : t -> string
val to_date_string : t -> string
val to_time_string : t -> string
val to_UTC_string : t -> string
val to_string : t -> string
OCaml

Innovation. Community. Security.