module Month: sig
.. end
of_string s
accepts three-character abbreviations with 3 capitalizations (e.g. Jan,
JAN, and jan)
type
t =
| |
Jan |
| |
Feb |
| |
Mar |
| |
Apr |
| |
May |
| |
Jun |
| |
Jul |
| |
Aug |
| |
Sep |
| |
Oct |
| |
Nov |
| |
Dec |
include Comparable.S
include Hashable.S
include Stringable.S
of_string s
accepts three-character abbreviations with 3 capitalizations (e.g. Jan,
JAN, and jan)
val all : t list
val of_int : int -> t option
of_int i
returns i'th month if i
is in 1,2,...,12. Otherwise it returns
None.
val of_int_exn : int -> t
val to_int : t -> int
to_int t
returns an int in 1,2,...12.
val shift : t -> int -> t
shift t i
goes forward (or backward) the specified number of months
module Export: sig
.. end
module Stable: sig
.. end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read_ml.reader
val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.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_ml.writer
val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
val bin_writer_t : t Bin_prot.Type_class.writer
of_string s
accepts three-character abbreviations with 3 capitalizations (e.g. Jan,
JAN, and jan)
of_int i
returns i'th month if i
is in 1,2,...,12. Otherwise it returns
None.
to_int t
returns an int in 1,2,...12.
shift t i
goes forward (or backward) the specified number of months