package timedesc

  1. Overview
  2. Docs
type t
val equal : t -> t -> bool
val year : t -> int

Accessors

val month : t -> int
val day : t -> int
val weekday : t -> weekday
val iso_week_year : t -> int
val iso_week : t -> int
val day_of_year : t -> int

Pretty printing

val pp_rfc3339 : Stdlib.Format.formatter -> t -> unit
val to_rfc3339 : t -> string

Parsing

val of_iso8601 : string -> (t, string) Stdlib.result
val of_iso8601_exn : string -> t

Sexp

val to_sexp : t -> CCSexp.t
val to_sexp_string : t -> string
val of_sexp : CCSexp.t -> (t, string) Stdlib.result
val of_sexp_string : string -> (t, string) Stdlib.result
val pp_sexp : Stdlib.Format.formatter -> t -> unit

Gregorian calendar

module Ymd_date : sig ... end

ISO week date calendar

module ISO_week_date : sig ... end

ISO ord date calendar

module ISO_ord_date : sig ... end
OCaml

Innovation. Community. Security.