package tezos-protocol-010-PtGRANAD

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type period = t

A period is a non-negative integer.

include Tezos_protocol_environment_010_PtGRANAD.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val to_seconds : period -> int64

of_second period fails if period is not positive

val of_seconds_exn : int64 -> period

of_second period fails if period is not positive. It should only be used at toplevel for constants.

val zero : period
val one_second : period
val one_minute : period
val one_hour : period
val compare : period -> period -> int

compare x y returns 0 if x is equal to y, a negative integer if x is shorter than y, and a positive integer if x is longer than y.

OCaml

Innovation. Community. Security.