package tezos-protocol-013-PtJakart
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/Time_repr/index.html
Module Tezos_raw_protocol_013_PtJakart.Time_repr
Source
include module type of struct include Tezos_protocol_environment_013_PtJakart.Time end
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 Tezos_protocol_environment_013_PtJakart.Data_encoding.t
val rfc_encoding : t Tezos_protocol_environment_013_PtJakart.Data_encoding.t
val pp_hum :
Tezos_protocol_environment_013_PtJakart.Format.formatter ->
t ->
unit
Pretty-prints the time stamp using RFC3339 format.
Parses RFC3339 representation and returns a timestamp.
Source
val (+?) :
time ->
Period_repr.t ->
time Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Adds a time span to a timestamp. This function fails on integer overflow
Source
val (-?) :
time ->
time ->
Period_repr.t Tezos_protocol_environment_013_PtJakart.Error_monad.tzresult
Returns the difference between two timestamps as a time span. This function fails when the difference is negative
t - p
Returns a timestamps p
seconds before t
.
TODO: https://gitlab.com/tezos/tezos/-/issues/2054 This function should be made available in the environment.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>