package tezos-protocol-011-PtHangz2
type period = t
Represents a period of time as a non-negative integer.
val encoding : period Tezos_protocol_environment_011_PtHangz2.Data_encoding.t
val rpc_arg : period Tezos_protocol_environment_011_PtHangz2.RPC_arg.t
val pp :
Tezos_protocol_environment_011_PtHangz2.Format.formatter ->
period ->
unit
val to_seconds : period -> int64
Returns the number of seconds contained in the period.
val of_seconds :
int64 ->
period Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresult
Converts a number of seconds to a period
.
of_second s
fails if s
is not positive.
val 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.
val (+?) :
period ->
period ->
period Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresult
Alias for add
.
val mult :
int32 ->
period ->
period Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresult
Safe multiplication by a positive integer. Guarded against overflow.
val zero : period
val one_second : period
val one_minute : period
val one_hour : period
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>