Module Day_of_week

module Day_of_week: sig .. end
For representing a day of the week.

type t = 
| Sun
| Mon
| Tue
| Wed
| Thu
| Fri
| Sat
include Comparable.S_binable
include Hashable.S_binable
include Stringable.S
of_string s accepts three-character abbreviations and full day names with any capitalization, and strings of the integers 0-6.
val to_string_long : t -> string
Capitalized full day names rather than all-caps 3-letter abbreviations
val of_int_exn : int -> t
These use the same mapping as Unix.tm_wday: 0 <-> Sun, ... 6 <-> Sat
val of_int : int -> t option
val to_int : t -> int
val iso_8601_weekday_number : t -> int
As per ISO 8601, Mon->1, Tue->2, ... Sun->7
val shift : t -> int -> t
This goes forward (or backward) the specified number of weekdays
val num_days : from:t -> to_:t -> int
num_days ~from ~to_ gives the number of days that must elapse from a from to get to a to_, i.e. the smallest non-negative number i such that shift from i = to_.
val is_sun_or_sat : t -> bool
val all : t list
val weekdays : t list
Mon; Tue; Wed; Thu; Fri
val weekends : t list
Sat; Sun
module Stable: sig .. end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val compare : t -> t -> int
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer

of_string s accepts three-character abbreviations and full day names with any capitalization, and strings of the integers 0-6.

Capitalized full day names rather than all-caps 3-letter abbreviations

These use the same mapping as Unix.tm_wday: 0 <-> Sun, ... 6 <-> Sat

As per ISO 8601, Mon->1, Tue->2, ... Sun->7

This goes forward (or backward) the specified number of weekdays

num_days ~from ~to_ gives the number of days that must elapse from a from to get to a to_, i.e. the smallest non-negative number i such that shift from i = to_.

Mon; Tue; Wed; Thu; Fri

Sat; Sun