package odate

  1. Overview
  2. Docs

Parameters

module I : Implem

Signature

type t = I.t
type d = ODuration.t
val beginning_of_the_day : ?tz:tz -> t -> t
val beginning_of_the_month : ?tz:tz -> t -> t
val beginning_of_the_week : ?tz:tz -> t -> t
val end_of_the_day : ?tz:tz -> t -> t
val end_of_the_month : ?tz:tz -> t -> t
val end_of_the_week : ?tz:tz -> t -> t
val gmt : tz
val compare : t -> t -> int
val empty : human_readable
val some_if_valid : t -> t option
val now : unit -> t
val now_milliseconds : unit -> float
val get_std_timezone : unit -> tz_internal
val get_dst_timezone : t -> tz_internal
val epoch : t
val make : ?tz:tz -> ?s:int -> ?m:int -> ?h:int -> day:int -> month:month -> year:int -> unit -> t
val move : t -> d -> t
val advance_by_minutes : t -> int -> t
val advance_by_hours : t -> int -> t
val advance_by_days : t -> int -> t
val advance_by_months : t -> int -> t
val advance_by_years : t -> int -> t
val convert_with_tz : tz -> tz -> t -> t
val advance_by_weeks : t -> int -> t
val move_to_weekday : ?tz:tz -> t -> forward:bool -> weekday -> t
val calendar_advance : t -> ODuration.human_readable -> t
val between : t -> t -> d
val in_between : t -> t -> t
val max : t -> t -> t
val min : t -> t -> t
val is_after : t -> t -> bool
val is_before : t -> t -> bool
val is_epoch : t -> bool
val get_age : t -> int
val get_weekday : ?tz:tz -> t -> weekday
val get_day : ?tz:tz -> t -> int
val get_month : ?tz:tz -> t -> month
val get_year : ?tz:tz -> t -> year
val get_first_week : ?tz:tz -> year -> t
val get_week_number : ?tz:tz -> t -> int
val get_min : ?tz:tz -> t -> int
val get_hour : ?tz:tz -> t -> int
val get_sec : ?tz:tz -> t -> int
module Format : sig ... end
module Printer : sig ... end
module Parser : sig ... end
module From : sig ... end
module To : sig ... end
OCaml

Innovation. Community. Security.