package mariadb

  1. Overview
  2. Docs

Module representing MariaDB date- and time-related values.

type t

The type of time values.

Retrieval of time components

val year : t -> int
val month : t -> int
val day : t -> int
val hour : t -> int
val minute : t -> int
val second : t -> int
val microsecond : t -> int

Creation of time values

val time : hour:int -> minute:int -> second:int -> ?microsecond:int -> unit -> t
val local_timestamp : float -> t
val utc_timestamp : float -> t
val date : year:int -> month:int -> day:int -> unit -> t
val datetime : year:int -> month:int -> day:int -> hour:int -> minute:int -> second:int -> ?microsecond:int -> unit -> t
OCaml

Innovation. Community. Security.