Module GoogleApps.Date

Standard JavaScript Date

type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val now : unit -> t
val get_day : t -> int
returns

day of the week (0-6)

val get_full_year : t -> int
returns

year (4 digits)

val get_month : t -> int
returns

month (0-11)

val get_date : t -> int
returns

day of the month (1-31)

val get_hours : t -> int
returns

hour (0-23)

val get_minutes : t -> int
returns

minutes (0-59)

val get_seconds : t -> int
returns

seconds (0-59)

val to_date_string : t -> string
val to_ISO_string : t -> string
val to_locale_date_string : t -> string
val to_string : t -> string
val set_date : t -> date:int -> unit
val set_month : t -> month:int -> unit
val set_full_year : t -> year:int -> unit