octez-proto-libs.protocol-environment
Make.Time
tezos_protocol_environment_sigs
tezos_protocol_environment_sigs_internals
tezos_protocol_environment_structs
type t = Tezos_base.TzPervasives.Time.Protocol.t
include Compare.S with type t := t
val (=) : t -> t -> bool
x = y iff compare x y = 0
x = y
compare x y = 0
val (<>) : t -> t -> bool
x <> y iff compare x y <> 0
x <> y
compare x y <> 0
val (<) : t -> t -> bool
x < y iff compare x y < 0
x < y
compare x y < 0
val (<=) : t -> t -> bool
x <= y iff compare x y <= 0
x <= y
compare x y <= 0
val (>=) : t -> t -> bool
x >= y iff compare x y >= 0
x >= y
compare x y >= 0
val (>) : t -> t -> bool
x > y iff compare x y > 0
x > y
compare x y > 0
val compare : t -> t -> int
compare an alias for the functor parameter's compare function
compare
val equal : t -> t -> bool
equal x y iff compare x y = 0
equal x y
val max : t -> t -> t
max x y is x if x >= y otherwise it is y
max x y
x
y
val min : t -> t -> t
min x y is x if x <= y otherwise it is y
min x y
val add : t -> int64 -> t
val diff : t -> t -> int64
val of_seconds : int64 -> t
val to_seconds : t -> int64
val of_notation : string -> t option
val of_notation_exn : string -> t
val to_notation : t -> string
val encoding : t Data_encoding.t
val rfc_encoding : t Data_encoding.t
val pp_hum : Format.formatter -> t -> unit