package tezos-protocol-013-PtJakart

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-protocol-013-PtJakart.raw/Tezos_raw_protocol_013_PtJakart/Period_repr/index.html

Module Tezos_raw_protocol_013_PtJakart.Period_reprSource

Sourcetype t
Sourcetype period = t

Represents a period of time as a non-negative integer.

include Tezos_protocol_environment_013_PtJakart.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
Sourceval to_seconds : period -> int64

Returns the number of seconds contained in the period.

Converts a number of seconds to a period.

of_second s fails if s is not positive.

Sourceval of_seconds_exn : int64 -> period

Converts a number of seconds to period.

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

Safe addition of periods, guarded against overflow.

Safe multiplication by a positive integer. Guarded against overflow.

Sourceval zero : period
Sourceval one_second : period
Sourceval one_minute : period
Sourceval 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.