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

Creation of time values

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

Innovation. Community. Security.