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/Script_timestamp_repr/index.html

Module Tezos_raw_protocol_013_PtJakart.Script_timestamp_reprSource

Defines the internal Michelson representation for timestamps and basic operations that can be performed on it.

Sourcetype repr
Sourcetype t =
  1. | Timestamp_tag of repr

Representation of timestamps specific to the Michelson interpreter. A number of seconds since the epoch. t is made algebraic in order to distinguish it from the other type parameters of Script_typed_ir.ty.

Sourceval of_int64 : int64 -> t

Convert a number of seconds since the epoch to a timestamp.

Sourceval compare : t -> t -> int

Compare timestamps. Returns 1 if the first timestamp is later than the second one; 0 if they're equal and -1 othwerwise.

Sourceval to_notation : t -> string option

Convert a timestamp to RFC3339 notation if possible *

Sourceval to_num_str : t -> string

Convert a timestamp to a string representation of the seconds

Sourceval to_string : t -> string

Convert to RFC3339 notation if possible, or num if not

Sourceval of_string : string -> t option

Returns difference between timestamps as integral number of seconds in Michelson representation of numbers.

Add a number of seconds to the timestamp.

Subtract a number of seconds from the timestamp.

OCaml

Innovation. Community. Security.