package timedesc

  1. Overview
  2. Docs

Module Timedesc.DateSource

Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval year : t -> int

Accessors

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

Pretty printing

Sourceval pp_rfc3339 : Format.formatter -> t -> unit
Sourceval to_rfc3339 : t -> string

Parsing

Sourceval of_iso8601 : string -> (t, string) result
Sourceval of_iso8601_exn : string -> t

Sexp

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

Gregorian calendar

Sourcemodule Ymd_date : sig ... end

ISO week date calendar

Sourcemodule ISO_week_date : sig ... end

ISO ord date calendar

Sourcemodule ISO_ord_date : sig ... end