package timmy

  1. Overview
  2. Docs

A day of the week.

A day of the week.

Type

Scalar conversions

type t =
  1. | Monday
  2. | Tuesday
  3. | Wednesday
  4. | Thursday
  5. | Friday
  6. | Saturday
  7. | Sunday

A day of the week.

type js = int

Integer

val to_int : ?base:t -> t -> int

to_int ~base weekday is the number of days from base to the next weekday.

Base defaults to Monday.

Pretty-print

val pp : t Fmt.t

pp f weekday prints weekday to f as its english name.

String

val to_string : t -> string

to_string weekday is the english name of weekday.

val equal : t -> t -> bool
val compare : t -> t -> int
module O : sig ... end
include module type of O
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
OCaml

Innovation. Community. Security.